diff options
Diffstat (limited to 'interrupts.c')
-rw-r--r-- | interrupts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/interrupts.c b/interrupts.c index 2755ccf..8c800c6 100644 --- a/interrupts.c +++ b/interrupts.c @@ -26,14 +26,14 @@ int interrupts(int argc, char **argv) { return 0; } if(!strcmp(argv[1], "autoconf")) { - if(0 == access("/proc/stat", R_OK)) + if(0 == access(PROC_STAT, R_OK)) return writeyes(); else - return writeno("/proc/stat not readable"); + return writeno(PROC_STAT " not readable"); } } - if(!(f=fopen("/proc/stat", "r"))) { - fputs("cannot open /proc/stat\n", stderr); + if(!(f=fopen(PROC_STAT, "r"))) { + fputs("cannot open " PROC_STAT "\n", stderr); return 1; } while(fgets(buff, 256, f)) { |