projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- spelling
[oweals/busybox.git]
/
networking
/
zcip.c
diff --git
a/networking/zcip.c
b/networking/zcip.c
index 716c4a5e1fa9918defb803c35d3536cb8b49dea3..b5a904d469493da5056fa3fe6e7b7e4b364e041e 100644
(file)
--- a/
networking/zcip.c
+++ b/
networking/zcip.c
@@
-38,7
+38,6
@@
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/wait.h>
-#include <sys/time.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <arpa/inet.h>
@@
-437,7
+436,7
@@
fail:
gettimeofday(&tv2, NULL);
if (timercmp(&tv1, &tv2, <)) {
gettimeofday(&tv2, NULL);
if (timercmp(&tv1, &tv2, <)) {
- timeout =
-1
;
+ timeout =
0
;
} else {
timersub(&tv1, &tv2, &tv1);
timeout = 1000 * tv1.tv_sec
} else {
timersub(&tv1, &tv2, &tv1);
timeout = 1000 * tv1.tv_sec