Browse code

remove warnings

git-svn: trunk@4541

aCaB authored on 2008/12/07 21:33:11
Showing 3 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sun Dec  7 13:38:49 CET 2008 (acab)
2
+-----------------------------------
3
+ * clamav-milter: get rid of some warnings
4
+
1 5
 Sun Dec  7 12:01:10 EET 2008 (edwin)
2 6
 ------------------------------------
3 7
  * libclamav/special.c: add missing type
... ...
@@ -95,7 +95,7 @@ static int islocal(struct sockaddr *sa, socklen_t addrlen) {
95 95
 
96 96
 
97 97
 static int cpool_addtcp(char *addr, char *port) {
98
-    struct addrinfo hints, *res, *res2;;
98
+    struct addrinfo hints, *res, *res2;
99 99
     struct CP_ENTRY *cpe = (struct CP_ENTRY *)&cp->pool[cp->entries-1];
100 100
 
101 101
     memset(&hints, 0, sizeof(hints));
... ...
@@ -136,7 +136,9 @@ int nc_connect(int s, struct CP_ENTRY *cpe) {
136 136
 }
137 137
 
138 138
 
139
-int nc_send(int s, const void *buf, size_t len) {
139
+int nc_send(int s, const void *buff, size_t len) {
140
+    char *buf = (char *)buff;
141
+
140 142
     while(len) {
141 143
 	int res = send(s, buf, len, 0);
142 144
 	time_t timeout = time(NULL) + TIMEOUT;