Date: Tue, 14 Jan 2014 14:03:28 +0000 (UTC) From: Sergey Kandaurov <pluknet@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r260627 - stable/10/tools/tools/syscall_timing Message-ID: <201401141403.s0EE3Sc9086715@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pluknet Date: Tue Jan 14 14:03:28 2014 New Revision: 260627 URL: http://svnweb.freebsd.org/changeset/base/260627 Log: MFC r257705: Clean up -Wtautological-compare -Wformat warnings. Modified: stable/10/tools/tools/syscall_timing/syscall_timing.c Directory Properties: stable/10/ (props changed) Modified: stable/10/tools/tools/syscall_timing/syscall_timing.c ============================================================================== --- stable/10/tools/tools/syscall_timing/syscall_timing.c Tue Jan 14 12:01:36 2014 (r260626) +++ stable/10/tools/tools/syscall_timing/syscall_timing.c Tue Jan 14 14:03:28 2014 (r260627) @@ -192,7 +192,8 @@ test_pipe(uintmax_t num, uintmax_t int_a 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, uintma 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_ar 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); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401141403.s0EE3Sc9086715>