* serv_icq.c: warning fixes
authorNathan Bryant <loanshark@uncensored.citadel.org>
Sat, 7 Aug 1999 16:34:39 +0000 (16:34 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Sat, 7 Aug 1999 16:34:39 +0000 (16:34 +0000)
citadel/ChangeLog
citadel/serv_icq.c

index 0e1f943aee9c1b9e3287cd78c03f4f9255790732..8c38d731710f0d30122c908bdcaeed1fc422f0c1 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 1.348  1999/08/07 16:34:38  nbryant
+       * serv_icq.c: warning fixes
+
 Revision 1.347  1999/08/06 02:57:26  ajc
 * locate_host.c: use strdoop() and phree() instead of strdup() and free()
 * serv_icq.c: run learned IP's through Citadel's locate_host() & put in Wholist
@@ -1183,3 +1186,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Initial CVS import 
+
index da336f7fd9dd8c0b31b0b095b1b3d021dff821d8..9a05a94b36842057cd276d20a628b799cf9f7d29 100644 (file)
@@ -24,6 +24,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#include <arpa/inet.h>
 
 #include <time.h>
 #include <string.h>
@@ -40,6 +41,7 @@
 #include "dynloader.h"
 #include "tools.h"
 #include "citserver.h"
+#include "locate_host.h"
 #include "msgbase.h"
 #include "sysdep_decls.h"
 #include "support.h"
@@ -2308,7 +2310,7 @@ void CtdlICQ_UserOnline(DWORD uin, DWORD status, DWORD ip,
        
        CtdlICQ_Status_Update(uin, status);
        decoded_ip = ntohl(ip);
-       locate_host(CtdlICQ_CLent(uin)->host, &decoded_ip);
+       locate_host(CtdlICQ_CLent(uin)->host, (struct in_addr *)&decoded_ip);
 }