From 3aced798183934795b91002d7b71dc7924a12394 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 20 Jul 2015 11:30:38 +0000 Subject: [PATCH] hostname.c: make use of RVAL_DECODED * hostname.c (sys_sethostname): Update for RVAL_DECODED. --- hostname.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hostname.c b/hostname.c index 25afcf1f..c64d954d 100644 --- a/hostname.c +++ b/hostname.c @@ -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) -- 2.40.0