]> granicus.if.org Git - strace/commitdiff
hostname.c: make use of RVAL_DECODED
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Jul 2015 11:30:38 +0000 (11:30 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Jul 2015 22:03:07 +0000 (22:03 +0000)
* hostname.c (sys_sethostname): Update for RVAL_DECODED.

hostname.c

index 25afcf1feee6ad1420f193be8bd6802a40120759..c64d954dad9beb2faefa579bd30d49d49991c726 100644 (file)
@@ -2,11 +2,10 @@
 
 SYS_FUNC(sethostname)
 {
-       if (entering(tcp)) {
-               printstr(tcp, tcp->u_arg[0], tcp->u_arg[1]);
-               tprintf(", %lu", tcp->u_arg[1]);
-       }
-       return 0;
+       printstr(tcp, tcp->u_arg[0], tcp->u_arg[1]);
+       tprintf(", %lu", tcp->u_arg[1]);
+
+       return RVAL_DECODED;
 }
 
 #if defined(ALPHA)