From 5c36a0eb7cdb0360f9afd5d747c321f423b35984 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:25:37 +0100 Subject: Imported from util-linux-2.9i tarball. --- sys-utils/ctrlaltdel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys-utils/ctrlaltdel.c') diff --git a/sys-utils/ctrlaltdel.c b/sys-utils/ctrlaltdel.c index e5565d704..c754fd058 100644 --- a/sys-utils/ctrlaltdel.c +++ b/sys-utils/ctrlaltdel.c @@ -7,24 +7,24 @@ #include #include #include - -int reboot(int magic, int magictoo, int flag); +#include "linux_reboot.h" int main(int argc, char *argv[]) { if(geteuid()) { - fprintf(stderr, "You must be root to set the Ctrl-Alt-Del behaviour.\n"); + fprintf(stderr, + "You must be root to set the Ctrl-Alt-Del behaviour.\n"); exit(1); } if(argc == 2 && !strcmp("hard", argv[1])) { - if(reboot(0xfee1dead, 672274793, 0x89abcdef) < 0) { + if(my_reboot(LINUX_REBOOT_CMD_CAD_ON) < 0) { perror("ctrlaltdel: reboot"); exit(1); } } else if(argc == 2 && !strcmp("soft", argv[1])) { - if(reboot(0xfee1dead, 672274793, 0) < 0) { + if(my_reboot(LINUX_REBOOT_CMD_CAD_OFF) < 0) { perror("ctrlaltdel: reboot"); exit(1); } -- cgit v1.2.3-55-g7522