diff options
Diffstat (limited to 'net-mgmt/arpalert/files/patch-arpalert.c')
-rw-r--r-- | net-mgmt/arpalert/files/patch-arpalert.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/net-mgmt/arpalert/files/patch-arpalert.c b/net-mgmt/arpalert/files/patch-arpalert.c deleted file mode 100644 index e85562af464b..000000000000 --- a/net-mgmt/arpalert/files/patch-arpalert.c +++ /dev/null @@ -1,28 +0,0 @@ ---- arpalert.c.orig 2011-11-08 19:36:51 UTC -+++ arpalert.c -@@ -179,6 +179,12 @@ int main(int argc, char **argv){ - if(cur_timeout.tv_sec != -1){ - time_sous(&cur_timeout, ¤t_t, &timeout); - -+ if (0 > timeout.tv_usec) { -+ /* avoid EINVAL (paranoid) */ -+ timeout.tv_sec -= (timeout.tv_usec / 1000000) + 1; -+ timeout.tv_usec = (timeout.tv_usec % 1000000) + 1000000; -+ } -+ - // prevent negative timeout - if(timeout.tv_sec < 0){ - timeout.tv_usec = 0; -@@ -188,6 +194,12 @@ int main(int argc, char **argv){ - timeout.tv_usec += 10000; - tmout = &timeout; - -+ if (1000000 <= timeout.tv_usec) { -+ /* avoid EINVAL */ -+ timeout.tv_sec += timeout.tv_usec / 1000000; -+ timeout.tv_usec %= 1000000; -+ } -+ - // if no timeout - } else { - tmout = NULL; |