projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1b2f6c3
)
memcached plugin: Corrected the copyright notice and removed unnecessary header files.
author
Florian Forster
<octo@noris.net>
Tue, 23 Oct 2007 14:20:09 +0000
(16:20 +0200)
committer
Florian Forster
<octo@noris.net>
Tue, 23 Oct 2007 14:20:09 +0000
(16:20 +0200)
src/memcached.c
patch
|
blob
|
history
diff --git
a/src/memcached.c
b/src/memcached.c
index
39c599c
..
a182578
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-1,6
+1,7
@@
/**
/**
- * collectd - src/memcached.c
- * Copyright (C) 2007 Antony Dovgal, heavily based on hddtemp.c
+ * collectd - src/memcached.c, based on src/hddtemp.c
+ * Copyright (C) 2007 Antony Dovgal
+ * Copyright (C) 2005,2006 Vincent Stehlé
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@
-18,7
+19,8
@@
*
* Authors:
* Antony Dovgal <tony at daylessday dot org>
*
* Authors:
* Antony Dovgal <tony at daylessday dot org>
- *
+ * Vincent Stehlé <vincent.stehle at free.fr>
+ * Florian octo Forster <octo at verplant.org>
**/
#include "collectd.h"
**/
#include "collectd.h"
@@
-31,11
+33,6
@@
# include <sys/socket.h>
# include <netinet/in.h>
# include <netinet/tcp.h>
# include <sys/socket.h>
# include <netinet/in.h>
# include <netinet/tcp.h>
-# include <libgen.h> /* for basename */
-
-#if HAVE_LINUX_MAJOR_H
-# include <linux/major.h>
-#endif
#define MEMCACHED_DEF_HOST "127.0.0.1"
#define MEMCACHED_DEF_PORT "11211"
#define MEMCACHED_DEF_HOST "127.0.0.1"
#define MEMCACHED_DEF_PORT "11211"
@@
-45,10
+42,9
@@
static const char *config_keys[] =
{
"Host",
static const char *config_keys[] =
{
"Host",
- "Port",
- NULL
+ "Port"
};
};
-static int config_keys_num =
2
;
+static int config_keys_num =
STATIC_ARRAY_SIZE (config_keys)
;
static char *memcached_host = NULL;
static char memcached_port[16];
static char *memcached_host = NULL;
static char memcached_port[16];