smqueue: Fix compiler warning about char* and constant strings.
(cherry picked from commit d712b09cdd
)
This commit is contained in:
parent
2c0be6d746
commit
f92807c2bd
|
@ -420,8 +420,9 @@ SMnet::string_addr (struct sockaddr *sa, socklen_t len, bool withport)
|
|||
bool
|
||||
SMnet::parse_addr (const char *str, char *sockad, socklen_t maxlen, socklen_t *len)
|
||||
{
|
||||
char *p = strchr(str, ':');
|
||||
char *host, *port;
|
||||
const char *p = strchr(str, ':');
|
||||
char *host;
|
||||
const char *port;
|
||||
|
||||
if (p == NULL)
|
||||
return false;
|
||||
|
|
Reference in New Issue