diff options
author | peter <peter@FreeBSD.org> | 2002-09-11 18:16:40 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-09-11 18:16:40 +0000 |
commit | 13786391ba21191db546fd19da849d2a63f13b88 (patch) | |
tree | 45a8f1537d1568e8f9eee3900fc02b5e25b4025d /sbin | |
parent | 06f500f894a5fa364ff68ee549577b947f480478 (diff) | |
download | FreeBSD-src-13786391ba21191db546fd19da849d2a63f13b88.zip FreeBSD-src-13786391ba21191db546fd19da849d2a63f13b88.tar.gz |
Commit "unrelated style fixes" part of Bruce's patch (regarding
bcopy/memcpy) seperately.
Submitted by: bde
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ping/ping.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 3b8db2a..ca7a69b 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -669,7 +669,7 @@ main(argc, argv) if (n < 0) continue; /* Must be EINTR. */ if (n == 1) { - struct timeval *t = 0; + struct timeval *t = NULL; #ifdef SO_TIMESTAMP struct cmsghdr *cmsg = (struct cmsghdr *)&ctrl; @@ -687,11 +687,11 @@ main(argc, argv) cmsg->cmsg_type == SCM_TIMESTAMP && cmsg->cmsg_len == CMSG_LEN(sizeof *t)) { /* Copy to avoid alignment problems: */ - memcpy(&now,CMSG_DATA(cmsg),sizeof(now)); + memcpy(&now, CMSG_DATA(cmsg), sizeof(now)); t = &now; } #endif - if (t == 0) { + if (t == NULL) { (void)gettimeofday(&now, NULL); t = &now; } @@ -808,11 +808,11 @@ pr_pack(buf, cc, from, tv) struct sockaddr_in *from; struct timeval *tv; { + struct in_addr ina; + u_char *cp, *dp; struct icmp *icp; struct ip *ip; - struct in_addr ina; const void *tp; - u_char *cp, *dp; double triptime; int dupflag, hlen, i, j, seq; static int old_rrlen; |