]> granicus.if.org Git - strace/commitdiff
utime.c: make use of RVAL_DECODED
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 15 Jul 2015 08:29:56 +0000 (08:29 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 16 Jul 2015 01:35:27 +0000 (01:35 +0000)
* utime.c (sys_utime): Update for RVAL_DECODED.

utime.c

diff --git a/utime.c b/utime.c
index 4626c9197719dda50b32e9d012dfee2c2894d806..b21c799c78bbe639b3de958ef76849f0a3690944 100644 (file)
--- a/utime.c
+++ b/utime.c
@@ -9,24 +9,23 @@ SYS_FUNC(utime)
        } u;
        unsigned wordsize;
 
-       if (entering(tcp)) {
-               printpath(tcp, tcp->u_arg[0]);
-               tprints(", ");
+       printpath(tcp, tcp->u_arg[0]);
+       tprints(", ");
 
-               wordsize = current_wordsize;
-               if (umoven_or_printaddr(tcp, tcp->u_arg[1], 2 * wordsize, &u))
-                       ;
-               else if (wordsize == sizeof u.utl[0]) {
-                       tprintf("[%s,", sprinttime(u.utl[0]));
-                       tprintf(" %s]", sprinttime(u.utl[1]));
-               }
-               else if (wordsize == sizeof u.uti[0]) {
-                       tprintf("[%s,", sprinttime(u.uti[0]));
-                       tprintf(" %s]", sprinttime(u.uti[1]));
-               }
-               else
-                       tprintf("<decode error: unsupported wordsize %d>",
-                               wordsize);
+       wordsize = current_wordsize;
+       if (umoven_or_printaddr(tcp, tcp->u_arg[1], 2 * wordsize, &u))
+               ;
+       else if (wordsize == sizeof u.utl[0]) {
+               tprintf("[%s,", sprinttime(u.utl[0]));
+               tprintf(" %s]", sprinttime(u.utl[1]));
        }
-       return 0;
+       else if (wordsize == sizeof u.uti[0]) {
+               tprintf("[%s,", sprinttime(u.uti[0]));
+               tprintf(" %s]", sprinttime(u.uti[1]));
+       }
+       else
+               tprintf("<decode error: unsupported wordsize %d>",
+                       wordsize);
+
+       return RVAL_DECODED;
 }