diff options
author | Sami Kerola | 2017-06-24 21:42:58 +0200 |
---|---|---|
committer | Sami Kerola | 2017-08-30 21:32:48 +0200 |
commit | 367f40806e25390b7c1b20ad56f90d0b0bf8e56f (patch) | |
tree | d72b223abb195f55a253ddf0cbe36a74852ca879 /include/pathnames.h | |
parent | rfkill: make command to build in util-linux project (diff) | |
download | kernel-qcow2-util-linux-367f40806e25390b7c1b20ad56f90d0b0bf8e56f.tar.gz kernel-qcow2-util-linux-367f40806e25390b7c1b20ad56f90d0b0bf8e56f.tar.xz kernel-qcow2-util-linux-367f40806e25390b7c1b20ad56f90d0b0bf8e56f.zip |
rfkill: make programming style to match util-linux project
Use the usual facilities, add translation strings, move global variables at
the beginning of the file, make usage() look as expected, add standard
command-line option parsing.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/pathnames.h')
-rw-r--r-- | include/pathnames.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/pathnames.h b/include/pathnames.h index 747382dae..0778d4f20 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -188,4 +188,8 @@ /* lscpu paths */ #define _PATH_PROC_CPUINFO "/proc/cpuinfo" +/* rfkill paths */ +#define _PATH_DEV_RFKILL "/dev/rfkill" +#define _PATH_SYS_RFKILL "/sys/class/rfkill" + #endif /* PATHNAMES_H */ |