]> granicus.if.org Git - strace/commitdiff
reboot.c: make use of RVAL_DECODED
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 17 Jul 2015 20:27:00 +0000 (20:27 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 18 Jul 2015 00:01:40 +0000 (00:01 +0000)
* reboot.c (sys_reboot): Update for RVAL_DECODED.

reboot.c

index 2d118510df55a319abc7ccbe987e32dd25f9bc36..ebe3def38cdd2320621b58a5171f55b0ee3d2ab6 100644 (file)
--- a/reboot.c
+++ b/reboot.c
@@ -6,9 +6,6 @@
 
 SYS_FUNC(reboot)
 {
-       if (exiting(tcp))
-               return 0;
-
        printflags(bootflags1, tcp->u_arg[0], "LINUX_REBOOT_MAGIC_???");
        tprints(", ");
        printflags(bootflags2, tcp->u_arg[1], "LINUX_REBOOT_MAGIC_???");
@@ -18,5 +15,5 @@ SYS_FUNC(reboot)
                tprints(", ");
                printstr(tcp, tcp->u_arg[3], -1);
        }
-       return 0;
+       return RVAL_DECODED;
 }