summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 124f321)
raw | patch | inline | side by side (parent: 124f321)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Mar 2016 19:48:26 +0000 (20:48 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Mar 2016 19:48:26 +0000 (20:48 +0100) |
src/apcups.c | patch | blob | history |
diff --git a/src/apcups.c b/src/apcups.c
index 29d58c3ad6e0a2d1b2038bf6433d078113fe0497..b4bc0997e6c3e7d309d13e23225edef31ca7f465 100644 (file)
--- a/src/apcups.c
+++ b/src/apcups.c
* 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;
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;