aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-08-28 15:25:43 +0900
committerOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-08-28 15:25:43 +0900
commit31ac0db73672347732dc80cf8f2afe8e6f3d466b (patch)
tree3d76ad6ddc14383ea84a7477f6285d53bf731268
parentc32d48ef5fd4a47a93933e6ffba5c8a93d26e43f (diff)
magicolor: fix [-Werror=pointer-sign] compiler warnings
The libsnmp API requires a u_char *session.community :-(
-rw-r--r--backend/magicolor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/magicolor.c b/backend/magicolor.c
index 87c1718..e899a79 100644
--- a/backend/magicolor.c
+++ b/backend/magicolor.c
@@ -1969,8 +1969,8 @@ mc_network_discovery(const char*host)
init_snmp("sane-magicolor-backend");
snmp_sess_init (&session);
session.version = SNMP_VERSION_2c;
- session.community = "public";
- session.community_len = strlen (session.community);
+ session.community = (u_char *) "public";
+ session.community_len = strlen ((char *)session.community);
if (host) {
session.peername = host;
} else {