[moodns-cvs] CVS: moodns/src socket.c,1.10,1.11 socket.h,1.7,1.8
Status: Alpha
Brought to you by:
mawolf
From: Omar K. <spy...@us...> - 2002-02-14 06:54:39
|
Update of /cvsroot/moodns/moodns/src In directory usw-pr-cvs1:/tmp/cvs-serv17696 Modified Files: socket.c socket.h Log Message: FreeBSD needed some headers. Index: socket.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/socket.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** socket.c 14 Feb 2002 06:51:06 -0000 1.10 --- socket.c 14 Feb 2002 06:54:36 -0000 1.11 *************** *** 37,40 **** --- 37,41 ---- #include <sys/socket.h> #include <netinet/in.h> + #include <arpa/inet.h> #include <errno.h> #include "byte_array.h" *************** *** 114,120 **** u16 p; ! inet_aton(host, &in); remote = (u32) in.s_addr; p = (u16) htons((unsigned short) port); if (!s) return NULL; --- 115,124 ---- u16 p; ! if (!inet_aton(host, &in)) ! return NULL; ! remote = (u32) in.s_addr; p = (u16) htons((unsigned short) port); + if (!s) return NULL; Index: socket.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/socket.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** socket.h 14 Feb 2002 06:41:23 -0000 1.7 --- socket.h 14 Feb 2002 06:54:36 -0000 1.8 *************** *** 27,30 **** --- 27,32 ---- #include <sys/socket.h> #include <netinet/in.h> + #include <arpa/inet.h> + #include "byte_array.h" |