From 0b4b39d5dda8baa555526c784ceb18659011291c Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 4 Mar 2016 20:48:26 +0100 Subject: [PATCH] apcups plugin: constify --- src/apcups.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apcups.c b/src/apcups.c index 29d58c3a..b4bc0997 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; -- 2.30.2