From 8d51f439461ca720cf9cd5a731a7e09ac55887d0 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 15 Jul 2015 08:29:56 +0000 Subject: [PATCH] utime.c: make use of RVAL_DECODED * utime.c (sys_utime): Update for RVAL_DECODED. --- utime.c | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/utime.c b/utime.c index 4626c919..b21c799c 100644 --- 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("", - 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("", + wordsize); + + return RVAL_DECODED; } -- 2.40.0