]> andersk Git - libfaim.git/commitdiff
close->closesocket for win32, and socket() stupidity in aim_ft.
authormid <mid>
Tue, 5 Sep 2000 05:19:26 +0000 (05:19 +0000)
committermid <mid>
Tue, 5 Sep 2000 05:19:26 +0000 (05:19 +0000)
aim_ft.c
faim/aim.h

index 26918e0ed1996f0004f2cd00491aa3d5509a0e65..b3bf8f7ea12b609032edc62c26dd1cf98aa43f32 100644 (file)
--- a/aim_ft.c
+++ b/aim_ft.c
@@ -683,7 +683,7 @@ faim_internal int aim_listenestablish(u_short portnum)
   const int on = 1;
   struct sockaddr_in sockin;
   
-  if ((listenfd = socket(PF_INET, SOCK_STREAM, AF_INET)) < 0) {
+  if ((listenfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
     perror("socket(listenfd)");
     return -1;
   } 
index ddeaaddb43978976feb2743629200a95aef494a7..393a50ad76481c6b0193e28ad62671ec4881feb6 100644 (file)
@@ -62,6 +62,7 @@
 #define sleep Sleep
 #define socklen_t int /* this must be a POSIXy thing */
 #define snprintf _snprintf /* I'm not sure whats wrong with Microsoft here */
+#define close(x) closesocket(x) /* no comment */
 #endif
 
 #if defined(mach) && defined(__APPLE__)
This page took 0.055064 seconds and 5 git commands to generate.