diff options
author | pluknet <pluknet@FreeBSD.org> | 2014-01-14 14:03:28 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2014-01-14 14:03:28 +0000 |
commit | 5889b488e31225968f5fcac07ee42c2ac6afa30d (patch) | |
tree | dabf741b158649136ce9fda66891ce6b429038f8 /tools | |
parent | 204096a62c437bf225d1c682cef7cc4acdbf565b (diff) | |
download | FreeBSD-src-5889b488e31225968f5fcac07ee42c2ac6afa30d.zip FreeBSD-src-5889b488e31225968f5fcac07ee42c2ac6afa30d.tar.gz |
MFC r257705:
Clean up -Wtautological-compare -Wformat warnings.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/syscall_timing/syscall_timing.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tools/tools/syscall_timing/syscall_timing.c b/tools/tools/syscall_timing/syscall_timing.c index 175c1bc..52d3359 100644 --- a/tools/tools/syscall_timing/syscall_timing.c +++ b/tools/tools/syscall_timing/syscall_timing.c @@ -192,7 +192,8 @@ test_pipe(uintmax_t num, uintmax_t int_arg, const char *path) uintmax_t test_socket_stream(uintmax_t num, uintmax_t int_arg, const char *path) { - uintmax_t i, so; + uintmax_t i; + int so; so = socket(int_arg, SOCK_STREAM, 0); if (so < 0) @@ -214,7 +215,8 @@ test_socket_stream(uintmax_t num, uintmax_t int_arg, const char *path) uintmax_t test_socket_dgram(uintmax_t num, uintmax_t int_arg, const char *path) { - uintmax_t i, so; + uintmax_t i; + int so; so = socket(int_arg, SOCK_DGRAM, 0); if (so < 0) @@ -408,7 +410,8 @@ test_dup(uintmax_t num, uintmax_t int_arg, const char *path) uintmax_t test_shmfd(uintmax_t num, uintmax_t int_arg, const char *path) { - uintmax_t i, shmfd; + uintmax_t i; + int shmfd; shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600); if (shmfd < 0) @@ -431,7 +434,8 @@ uintmax_t test_fstat_shmfd(uintmax_t num, uintmax_t int_arg, const char *path) { struct stat sb; - uintmax_t i, shmfd; + uintmax_t i; + int shmfd; shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600); if (shmfd < 0) @@ -785,7 +789,7 @@ main(int argc, char *argv[]) path); timespecsub(&ts_end, &ts_start); printf("%s\t%d\t", the_test->t_name, k); - printf("%ju.%09ju\t%d\t", (uintmax_t)ts_end.tv_sec, + printf("%ju.%09ju\t%ju\t", (uintmax_t)ts_end.tv_sec, (uintmax_t)ts_end.tv_nsec, calls); /* |