Add a "const" qualifier to get rid of some warnings.
(*why* is the return value of inet_ntop() const char *? it just returns a pointer to the user-supplied char * parameter!) git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@86 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -2716,7 +2716,7 @@ BUILT_IN_COMMAND(version1)
|
||||
void add_address(Virtuals **vhost_list, int norev, struct sockaddr *sa)
|
||||
{
|
||||
struct sockaddr_in * const sin = (struct sockaddr_in *)sa;
|
||||
char *result = NULL;
|
||||
const char *result = NULL;
|
||||
Virtuals *vhost;
|
||||
#ifdef IPV6
|
||||
struct sockaddr_in6 * const sin6 = (struct sockaddr_in6 *)sa;
|
||||
|
||||
Reference in New Issue
Block a user