[PATCH] mini port scanner for busybox - V2
Luciano Rocha
strange at nsk.no-ip.org
Thu Jun 14 14:41:59 UTC 2007
On Thu, Jun 14, 2007 at 04:12:20PM +0200, Tito wrote:
> +static int my_gettimeofday(void)
> +{
> + struct timeval now;
> +
> + if (gettimeofday(&now, NULL))
> + return 0;
> + return (now.tv_sec * 1000000 + now.tv_usec);
Err, this overflows in current 32bits systems. tv_sec is already in the
31 bit limit (1181831862).
Use long long instead.
--
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070614/da0ebd4b/attachment-0002.pgp
More information about the busybox
mailing list