summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger2005-07-31 22:22:20 +0000
committerMike Frysinger2005-07-31 22:22:20 +0000
commit66c37d1390e3fa566e3e68a09a9fb9a34eb6ded3 (patch)
treec5b3aa79f139ece22ac8be2e8ecb87a73dd890d9
parent2e3054f413fd65e06f9eedf9993eb067260c3aec (diff)
downloadbusybox-66c37d1390e3fa566e3e68a09a9fb9a34eb6ded3.zip
busybox-66c37d1390e3fa566e3e68a09a9fb9a34eb6ded3.tar.gz
typecast to int
-rw-r--r--networking/traceroute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c
index cf90ec0..628b134 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -418,7 +418,7 @@ traceroute_main(int argc, char *argv[])
datalen = atoi(*argv);
if (datalen < 0 || datalen >= MAXPACKET - sizeof(struct opacket))
bb_error_msg_and_die("packet size must be 0 <= s < %d.",
- MAXPACKET - sizeof(struct opacket));
+ (int)(MAXPACKET - sizeof(struct opacket)));
datalen += sizeof(struct opacket);
outpacket = (struct opacket *)xmalloc((unsigned)datalen);
memset(outpacket, 0, datalen);