File apcupsd-3.14.5-const.patch of Package apcupsd
Index: src/apcaccess.c
================================================================================
--- src/apcaccess.c
+++ src/apcaccess.c
@@ -89,7 +89,7 @@
char *p = argv[2];
host = p;
- p = strchr(p, ':');
+ p = (char *) strchr(p, ':');
if (p) {
*p++ = 0;
port = atoi(p);