projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configfile.c: constify
[collectd.git]
/
src
/
memcached.c
diff --git
a/src/memcached.c
b/src/memcached.c
index
472b089
..
2c01a57
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-34,7
+34,6
@@
#include "configfile.h"
#include <netdb.h>
#include "configfile.h"
#include <netdb.h>
-#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
@@
-99,8
+98,8
@@
static int memcached_connect_unix (memcached_t *st)
static int memcached_connect_inet (memcached_t *st)
{
static int memcached_connect_inet (memcached_t *st)
{
- char *host;
- char *port;
+ c
onst c
har *host;
+ c
onst c
har *port;
struct addrinfo ai_hints;
struct addrinfo *ai_list, *ai_ptr;
struct addrinfo ai_hints;
struct addrinfo *ai_list, *ai_ptr;
@@
-440,7
+439,7
@@
static int memcached_read (user_data_t *user_data)
}
else if (FIELD_IS ("listen_disabled_num"))
{
}
else if (FIELD_IS ("listen_disabled_num"))
{
- submit_derive ("
memcached_
connections", "listen_disabled", atof (fields[2]), st);
+ submit_derive ("connections", "listen_disabled", atof (fields[2]), st);
}
/*
}
/*