]> granicus.if.org Git - strace/commitdiff
count.c: use syserror instead of direct u_error access
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 18 Dec 2016 22:57:57 +0000 (22:57 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 18 Dec 2016 22:57:57 +0000 (22:57 +0000)
* count.c (count_syscall): Use syserror instead of u_error.

count.c

diff --git a/count.c b/count.c
index 1393b6e4eddb019cab2da685dee07b0098b24b30..d9d4b774d4a02a2b5975778264d98fd5dc7461a7 100644 (file)
--- 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 */