From 0b3f8750e7d307987eef9e63e327488a81c29a71 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 9 Apr 2022 22:54:03 -0500 Subject: [PATCH] openrc-shutdown: remove rc- prefix from file names --- src/openrc-shutdown/meson.build | 2 +- src/openrc-shutdown/openrc-shutdown.c | 2 +- src/openrc-shutdown/{rc-sysvinit.c => sysvinit.c} | 4 ++-- src/openrc-shutdown/{rc-sysvinit.h => sysvinit.h} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename src/openrc-shutdown/{rc-sysvinit.c => sysvinit.c} (98%) rename src/openrc-shutdown/{rc-sysvinit.h => sysvinit.h} (96%) diff --git a/src/openrc-shutdown/meson.build b/src/openrc-shutdown/meson.build index bdd58338..e380b5e3 100644 --- a/src/openrc-shutdown/meson.build +++ b/src/openrc-shutdown/meson.build @@ -1,6 +1,6 @@ if os == 'Linux' executable('openrc-shutdown', - ['openrc-shutdown.c', 'broadcast.c', 'rc-sysvinit.c', misc_c, + ['openrc-shutdown.c', 'broadcast.c', 'sysvinit.c', misc_c, usage_c, wtmp_c, version_h], c_args : cc_branding_flags, include_directories: [incdir, einfo_incdir, rc_incdir], diff --git a/src/openrc-shutdown/openrc-shutdown.c b/src/openrc-shutdown/openrc-shutdown.c index 1234dcfc..6255a485 100644 --- a/src/openrc-shutdown/openrc-shutdown.c +++ b/src/openrc-shutdown/openrc-shutdown.c @@ -35,7 +35,7 @@ #include "rc.h" #include "helpers.h" #include "misc.h" -#include "rc-sysvinit.h" +#include "sysvinit.h" #include "wtmp.h" #include "_usage.h" diff --git a/src/openrc-shutdown/rc-sysvinit.c b/src/openrc-shutdown/sysvinit.c similarity index 98% rename from src/openrc-shutdown/rc-sysvinit.c rename to src/openrc-shutdown/sysvinit.c index 8d258b63..84fc9ec2 100644 --- a/src/openrc-shutdown/rc-sysvinit.c +++ b/src/openrc-shutdown/sysvinit.c @@ -1,5 +1,5 @@ /* - * rc-sysvinit.c + * sysvinit.c * Helper to send a runlevel change to sysvinit */ @@ -24,7 +24,7 @@ #include #include "einfo.h" -#include "rc-sysvinit.h" +#include "sysvinit.h" static void sysvinit_send_cmd(struct init_request *request) { diff --git a/src/openrc-shutdown/rc-sysvinit.h b/src/openrc-shutdown/sysvinit.h similarity index 96% rename from src/openrc-shutdown/rc-sysvinit.h rename to src/openrc-shutdown/sysvinit.h index 6142cdd6..5e3077cf 100644 --- a/src/openrc-shutdown/rc-sysvinit.h +++ b/src/openrc-shutdown/sysvinit.h @@ -1,5 +1,5 @@ /* - * rc-sysvinit.h - Interface to communicate with sysvinit via /run/initctl. + * sysvinit.h - Interface to communicate with sysvinit via /run/initctl. */ /*