Skip to content

Commit 3aced79

Browse files
committed
hostname.c: make use of RVAL_DECODED
* hostname.c (sys_sethostname): Update for RVAL_DECODED.
1 parent 3f08e2d commit 3aced79

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

hostname.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
SYS_FUNC(sethostname)
44
{
5-
if (entering(tcp)) {
6-
printstr(tcp, tcp->u_arg[0], tcp->u_arg[1]);
7-
tprintf(", %lu", tcp->u_arg[1]);
8-
}
9-
return 0;
5+
printstr(tcp, tcp->u_arg[0], tcp->u_arg[1]);
6+
tprintf(", %lu", tcp->u_arg[1]);
7+
8+
return RVAL_DECODED;
109
}
1110

1211
#if defined(ALPHA)

0 commit comments

Comments
 (0)