git-svn: trunk@2413
Tomasz Kojm authored on 2006/10/19 21:31:53... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Thu Oct 19 13:50:18 CEST 2006 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamd/others.c: remove C_WINDOWS specific implementation of readsock (bb#68) |
|
4 |
+ Thanks to Mark Pizzolato |
|
5 |
+ |
|
1 | 6 |
Wed Oct 18 14:25:04 BST 2006 (trog) |
2 | 7 |
----------------------------------- |
3 | 8 |
* libclamav/unrar/unrarcmd.c: Add include and clean up. |
... | ... |
@@ -333,16 +333,6 @@ int writen(int fd, void *buff, unsigned int count) |
333 | 333 |
return count; |
334 | 334 |
} |
335 | 335 |
|
336 |
-#ifdef C_WINDOWS |
|
337 |
-/* |
|
338 |
- * The code is non-portable, please send patches to NJH |
|
339 |
- */ |
|
340 |
-int |
|
341 |
-readsock(int sockfd, char *buf, size_t size, unsigned char delim, int timeout_sec, int force_delim, int read_command) |
|
342 |
-{ |
|
343 |
- return recv(sockfd, buf, size, 0); |
|
344 |
-} |
|
345 |
-#else |
|
346 | 336 |
/* FD Support Submitted by Richard Lyons <frob-clamav*webcentral.com.au> */ |
347 | 337 |
/* |
348 | 338 |
This procedure does timed clamd command and delimited input processing. |
... | ... |
@@ -490,4 +480,3 @@ int readsock(int sockfd, char *buf, size_t size, unsigned char delim, int timeou |
490 | 490 |
} |
491 | 491 |
return n; |
492 | 492 |
} |
493 |
-#endif |