summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1b2f6c3)
raw | patch | inline | side by side (parent: 1b2f6c3)
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 39c599c2cc4ddd9cbb98b865696ecc3d430c12c3..a1825780ee1624ab7f4583bdf70295faef48a766 100644 (file)
--- a/src/memcached.c
+++ b/src/memcached.c
/**
- * 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
*
* 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 <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"
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];