projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
when printing time_t use %lld with (long long int) for portability
[rrdtool.git]
/
src
/
rrd_client.c
diff --git
a/src/rrd_client.c
b/src/rrd_client.c
index
287f642
..
0b69000
100644
(file)
--- a/
src/rrd_client.c
+++ b/
src/rrd_client.c
@@
-21,11
+21,13
@@
**/
#include "rrd.h"
**/
#include "rrd.h"
-#include "rrd_client.h"
#include "rrd_tool.h"
#include "rrd_tool.h"
+#include "rrd_client.h"
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <errno.h>
#include <assert.h>
#include <pthread.h>
#include <errno.h>
#include <assert.h>
#include <pthread.h>
@@
-33,6
+35,7
@@
#include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h>
+#include <limits.h>
#ifndef ENODATA
#define ENODATA ENOENT
#ifndef ENODATA
#define ENODATA ENOENT
@@
-436,8
+439,8
@@
static int rrdc_connect_network (const char *addr_orig) /* {{{ */
rrd_set_error("garbage after address: %s", port);
return (-1);
}
rrd_set_error("garbage after address: %s", port);
return (-1);
}
- } /* if (*addr =
']
') */
- else
if (strchr (addr, '.') != NULL) /* Hostname or IPv4 */
+ } /* if (*addr =
= '[
') */
+ else
{
port = rindex(addr, ':');
if (port != NULL)
{
port = rindex(addr, ':');
if (port != NULL)