aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-08-28 15:27:50 +0900
committerOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-08-28 15:27:50 +0900
commit4eaefe43713036f73ab322e8d6b519589055540d (patch)
treebd2994d0866549f7d3e9f319dd5b21b8ea65acf0
parent31ac0db73672347732dc80cf8f2afe8e6f3d466b (diff)
magicolor: fix [-Werror] compiler warning
This casts away const-ness in the hope that libsnmp doesn't change the session.peername.
-rw-r--r--backend/magicolor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/magicolor.c b/backend/magicolor.c
index e899a79..d3af142 100644
--- a/backend/magicolor.c
+++ b/backend/magicolor.c
@@ -1972,7 +1972,7 @@ mc_network_discovery(const char*host)
session.community = (u_char *) "public";
session.community_len = strlen ((char *)session.community);
if (host) {
- session.peername = host;
+ session.peername = (char *) host;
} else {
/* Do a network discovery via a broadcast */
session.peername = "255.255.255.255";