From c0d78c90be3628a23d44da9f6cf8e29a6884fe02 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 24 Jun 2017 20:19:26 +0100 Subject: rfkill: make command to build in util-linux project After this commit the command merely builds, but does not confirm style used in util-linux project. Signed-off-by: Sami Kerola --- sys-utils/rfkill.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'sys-utils/rfkill.c') diff --git a/sys-utils/rfkill.c b/sys-utils/rfkill.c index 60f8cdc27..ad2af36ea 100644 --- a/sys-utils/rfkill.c +++ b/sys-utils/rfkill.c @@ -30,8 +30,11 @@ #include #include -#include "rfkill.h" -#include "core.h" +#include + +#include "c.h" +#include "closestream.h" +#include "nls.h" static void rfkill_event(void) { @@ -313,7 +316,7 @@ static void usage(void) fprintf(stderr, "Usage:\t%s [options] command\n", argv0); fprintf(stderr, "Options:\n"); - fprintf(stderr, "\t--version\tshow version (%s)\n", rfkill_version); + fprintf(stderr, "\t--version\tshow version (%s)\n", PACKAGE_VERSION); fprintf(stderr, "Commands:\n"); fprintf(stderr, "\thelp\n"); fprintf(stderr, "\tevent\n"); @@ -329,7 +332,7 @@ static void usage(void) static void version(void) { - printf("rfkill %s\n", rfkill_version); + printf("rfkill %s\n", PACKAGE_VERSION); } int main(int argc, char **argv) -- cgit v1.2.3-55-g7522