svn commit: r260628 - stable/9/tools/tools/syscall_timing
Sergey Kandaurov
pluknet at FreeBSD.org
Tue Jan 14 14:05:29 UTC 2014
Author: pluknet
Date: Tue Jan 14 14:05:29 2014
New Revision: 260628
URL: http://svnweb.freebsd.org/changeset/base/260628
Log:
MFC r257705:
Clean up -Wtautological-compare -Wformat warnings.
Modified:
stable/9/tools/tools/syscall_timing/syscall_timing.c
Directory Properties:
stable/9/tools/tools/syscall_timing/ (props changed)
Modified: stable/9/tools/tools/syscall_timing/syscall_timing.c
==============================================================================
--- stable/9/tools/tools/syscall_timing/syscall_timing.c Tue Jan 14 14:03:28 2014 (r260627)
+++ stable/9/tools/tools/syscall_timing/syscall_timing.c Tue Jan 14 14:05:29 2014 (r260628)
@@ -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);
/*
More information about the svn-src-all
mailing list