From: Dmitry V. Levin Date: Sun, 18 Dec 2016 22:57:57 +0000 (+0000) Subject: count.c: use syserror instead of direct u_error access X-Git-Tag: v4.16~343 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f73dcf3c2187811c00c5ce49bd5903f796f90c52;p=strace count.c: use syserror instead of direct u_error access * count.c (count_syscall): Use syserror instead of u_error. --- diff --git a/count.c b/count.c index 1393b6e4..d9d4b774 100644 --- a/count.c +++ b/count.c @@ -63,7 +63,7 @@ count_syscall(struct tcb *tcp, const struct timeval *syscall_exiting_tv) cc = &counts[scno]; cc->calls++; - if (tcp->u_error) + if (syserror(tcp)) cc->errors++; /* tv = wall clock time spent while in syscall */