X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapcups.c;h=b4bc0997e6c3e7d309d13e23225edef31ca7f465;hb=af512f0e603c15ced6b4f70db3dd0c2200b4a094;hp=29d58c3ad6e0a2d1b2038bf6433d078113fe0497;hpb=4b8c1289003f0d60728f06a43bfcc9bc3de7004c;p=collectd.git 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;