diff options
author | Bill Nottingham <notting@redhat.com> | 1999-10-02 03:07:00 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-10-02 03:07:00 +0000 |
commit | ad0bcdcfb4b64fbb4f1158d013572a3bffa1f53f (patch) | |
tree | 6953be5553ce9ecc27339de96abbecd33c9202f7 /src/loglevel.c | |
parent | d5df5c81ed62f97db801ad31b05557074ab42f0c (diff) | |
download | initscripts-ad0bcdcfb4b64fbb4f1158d013572a3bffa1f53f.tar initscripts-ad0bcdcfb4b64fbb4f1158d013572a3bffa1f53f.tar.gz initscripts-ad0bcdcfb4b64fbb4f1158d013572a3bffa1f53f.tar.bz2 initscripts-ad0bcdcfb4b64fbb4f1158d013572a3bffa1f53f.tar.xz initscripts-ad0bcdcfb4b64fbb4f1158d013572a3bffa1f53f.zip |
duh. can we say, duplicated functionality?
Diffstat (limited to 'src/loglevel.c')
-rw-r--r-- | src/loglevel.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/loglevel.c b/src/loglevel.c deleted file mode 100644 index de2a4e11..00000000 --- a/src/loglevel.c +++ /dev/null @@ -1,25 +0,0 @@ - -/* Change the default console loglevel */ - -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> -#include <linux/unistd.h> -#include <sys/syscall.h> - -int main(int argc, char **argv) { - int level; - - if (!argv[1]) exit(0); - level=atoi(argv[1]); - if ( (level<1) || (level>8) ) { - fprintf(stderr,"invalid log level %d\n",level); - exit(-1); - } - if (!syscall(SYS_syslog,8,NULL,level)) { - exit(0); - } else { - perror("syslog"); - exit(-1); - } -} |