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:
Kevin Easton
2010-06-26 08:01:55 +00:00
parent 1a0e5ec166
commit 56d5c9e643

View File

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