laforge
/
openbts-osmo
Archived
1
0
Fork 0

Fix compiler warning about char* and constant strings.

This commit is contained in:
Alexander Chemeris 2010-09-09 18:01:55 +04:00
parent d0b797e62c
commit d712b09cdd
1 changed files with 3 additions and 2 deletions

View File

@ -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;