Browse Source

utime.c: make use of RVAL_DECODED

* utime.c (sys_utime): Update for RVAL_DECODED.
Dmitry V. Levin 4 years ago
parent
commit
8d51f43946
1 changed files with 17 additions and 18 deletions
  1. 17
    18
      utime.c

+ 17
- 18
utime.c View File

@@ -9,24 +9,23 @@ SYS_FUNC(utime)
9 9
 	} u;
10 10
 	unsigned wordsize;
11 11
 
12
-	if (entering(tcp)) {
13
-		printpath(tcp, tcp->u_arg[0]);
14
-		tprints(", ");
12
+	printpath(tcp, tcp->u_arg[0]);
13
+	tprints(", ");
15 14
 
16
-		wordsize = current_wordsize;
17
-		if (umoven_or_printaddr(tcp, tcp->u_arg[1], 2 * wordsize, &u))
18
-			;
19
-		else if (wordsize == sizeof u.utl[0]) {
20
-			tprintf("[%s,", sprinttime(u.utl[0]));
21
-			tprintf(" %s]", sprinttime(u.utl[1]));
22
-		}
23
-		else if (wordsize == sizeof u.uti[0]) {
24
-			tprintf("[%s,", sprinttime(u.uti[0]));
25
-			tprintf(" %s]", sprinttime(u.uti[1]));
26
-		}
27
-		else
28
-			tprintf("<decode error: unsupported wordsize %d>",
29
-				wordsize);
15
+	wordsize = current_wordsize;
16
+	if (umoven_or_printaddr(tcp, tcp->u_arg[1], 2 * wordsize, &u))
17
+		;
18
+	else if (wordsize == sizeof u.utl[0]) {
19
+		tprintf("[%s,", sprinttime(u.utl[0]));
20
+		tprintf(" %s]", sprinttime(u.utl[1]));
30 21
 	}
31
-	return 0;
22
+	else if (wordsize == sizeof u.uti[0]) {
23
+		tprintf("[%s,", sprinttime(u.uti[0]));
24
+		tprintf(" %s]", sprinttime(u.uti[1]));
25
+	}
26
+	else
27
+		tprintf("<decode error: unsupported wordsize %d>",
28
+			wordsize);
29
+
30
+	return RVAL_DECODED;
32 31
 }

Loading…
Cancel
Save