From 28b3758d4f394d6841571fe914f00c55504f66eb Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 23 Oct 2007 16:20:09 +0200 Subject: [PATCH] memcached plugin: Corrected the copyright notice and removed unnecessary header files. --- src/memcached.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) 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]; -- 2.11.0