kopia lustrzana https://gitlab.com/sane-project/backends
magicolor: fix [-Werror] compiler warning
This casts away const-ness in the hope that libsnmp doesn't change the session.peername.merge-requests/1/head
rodzic
31ac0db736
commit
4eaefe4371
|
@ -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";
|
||||
|
|
Ładowanie…
Reference in New Issue