瀏覽代碼

fixed compiler warnings under Solaris 2.7

Michael Elkins 24 年之前
父節點
當前提交
216c26cceb
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 1 0
      config.c
  2. 3 0
      imap.c

+ 1 - 0
config.c

@@ -24,6 +24,7 @@
 #include <pwd.h>
 #include <sys/types.h>
 #include <string.h>
+#include <stdlib.h>
 #include "isync.h"
 
 static config_t *box = 0;

+ 3 - 0
imap.c

@@ -222,6 +222,9 @@ socket_perror (const char *func, Socket_t *sock, int ret)
 	}
 	return;
     }
+#else
+    (void) sock;
+    (void) ret;
 #endif
     perror (func);
 }