From: Florian Forster Date: Tue, 23 Oct 2007 14:20:09 +0000 (+0200) Subject: memcached plugin: Corrected the copyright notice and removed unnecessary header files. X-Git-Tag: collectd-4.2.0~20^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=28b3758d4f394d6841571fe914f00c55504f66eb;p=collectd.git memcached plugin: Corrected the copyright notice and removed unnecessary header files. --- diff --git a/src/memcached.c b/src/memcached.c index 39c599c2..a1825780 100644 --- 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 @@ -18,7 +19,8 @@ * * Authors: * Antony Dovgal - * + * Vincent Stehlé + * Florian octo Forster **/ #include "collectd.h" @@ -31,11 +33,6 @@ # include # include # include -# include /* for basename */ - -#if HAVE_LINUX_MAJOR_H -# include -#endif #define MEMCACHED_DEF_HOST "127.0.0.1" #define MEMCACHED_DEF_PORT "11211" @@ -45,10 +42,9 @@ 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];