From: Ruben Kerkhof Date: Fri, 4 Mar 2016 19:48:26 +0000 (+0100) Subject: apcups plugin: constify X-Git-Tag: collectd-5.6.0~443 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b4b39d5dda8baa555526c784ceb18659011291c;p=thirdparty%2Fcollectd.git apcups plugin: constify --- diff --git a/src/apcups.c b/src/apcups.c index 29d58c3ad..b4bc0997e 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -220,7 +220,7 @@ static int net_recv (int *sockfd, char *buf, int buflen) * Returns zero on success * Returns non-zero on error */ -static int net_send (int *sockfd, char *buff, int len) +static int net_send (int *sockfd, const char *buff, int len) { uint16_t packet_size; @@ -401,7 +401,7 @@ static int apcups_config (oconfig_item_t *ci) return (0); } /* int apcups_config */ -static void apc_submit_generic (char *type, char *type_inst, double value) +static void apc_submit_generic (const char *type, const char *type_inst, double value) { value_t values[1]; value_list_t vl = VALUE_LIST_INIT;