richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
594167
From 8cfe7b6243660a5f1b43fe7217a678317284c430 Mon Sep 17 00:00:00 2001
594167
From: Yu Watanabe <watanabe.yu+github@gmail.com>
594167
Date: Tue, 14 Jun 2022 09:08:00 +0900
594167
Subject: [PATCH] locale: rename keymap-util.[ch] -> localed-util.[ch]
594167
594167
As the file contains not only keymap related functions.
594167
594167
(cherry picked from commit 3e5203b3eb2b06ef346eef13d64430542bbfb5c4)
594167
594167
Related: #2087652
594167
---
594167
 src/locale/{keymap-util.c => localed-util.c}           |  3 +--
594167
 src/locale/{keymap-util.h => localed-util.h}           |  0
594167
 src/locale/localed.c                                   |  2 +-
594167
 src/locale/meson.build                                 | 10 +++++-----
594167
 src/locale/{test-keymap-util.c => test-localed-util.c} |  2 +-
594167
 5 files changed, 8 insertions(+), 9 deletions(-)
594167
 rename src/locale/{keymap-util.c => localed-util.c} (99%)
594167
 rename src/locale/{keymap-util.h => localed-util.h} (100%)
594167
 rename src/locale/{test-keymap-util.c => test-localed-util.c} (99%)
594167
594167
diff --git a/src/locale/keymap-util.c b/src/locale/localed-util.c
594167
similarity index 99%
594167
rename from src/locale/keymap-util.c
594167
rename to src/locale/localed-util.c
594167
index a3af396ebe..f4f8e5d168 100644
594167
--- a/src/locale/keymap-util.c
594167
+++ b/src/locale/localed-util.c
594167
@@ -15,8 +15,7 @@
594167
 #include "fileio.h"
594167
 #include "fs-util.h"
594167
 #include "kbd-util.h"
594167
-#include "keymap-util.h"
594167
-#include "locale-util.h"
594167
+#include "localed-util.h"
594167
 #include "macro.h"
594167
 #include "mkdir-label.h"
594167
 #include "nulstr-util.h"
594167
diff --git a/src/locale/keymap-util.h b/src/locale/localed-util.h
594167
similarity index 100%
594167
rename from src/locale/keymap-util.h
594167
rename to src/locale/localed-util.h
594167
diff --git a/src/locale/localed.c b/src/locale/localed.c
594167
index 9718c5b95f..2c324efb14 100644
594167
--- a/src/locale/localed.c
594167
+++ b/src/locale/localed.c
594167
@@ -20,7 +20,7 @@
594167
 #include "def.h"
594167
 #include "dlfcn-util.h"
594167
 #include "kbd-util.h"
594167
-#include "keymap-util.h"
594167
+#include "localed-util.h"
594167
 #include "macro.h"
594167
 #include "main-func.h"
594167
 #include "missing_capability.h"
594167
diff --git a/src/locale/meson.build b/src/locale/meson.build
594167
index 0ccf71583d..2d8c48cf3a 100644
594167
--- a/src/locale/meson.build
594167
+++ b/src/locale/meson.build
594167
@@ -1,9 +1,9 @@
594167
 # SPDX-License-Identifier: LGPL-2.1-or-later
594167
 
594167
 systemd_localed_sources = files('''
594167
+        localed-util.c
594167
+        localed-util.h
594167
         localed.c
594167
-        keymap-util.c
594167
-        keymap-util.h
594167
 '''.split())
594167
 
594167
 localectl_sources = files('localectl.c')
594167
@@ -30,7 +30,7 @@ if conf.get('ENABLE_LOCALED') == 1
594167
 endif
594167
 
594167
 tests += [
594167
-        [files('test-keymap-util.c',
594167
-               'keymap-util.c',
594167
-               'keymap-util.h')],
594167
+        [files('test-localed-util.c',
594167
+               'localed-util.c',
594167
+               'localed-util.h')],
594167
 ]
594167
diff --git a/src/locale/test-keymap-util.c b/src/locale/test-localed-util.c
594167
similarity index 99%
594167
rename from src/locale/test-keymap-util.c
594167
rename to src/locale/test-localed-util.c
594167
index f726e8e524..f658d271dc 100644
594167
--- a/src/locale/test-keymap-util.c
594167
+++ b/src/locale/test-localed-util.c
594167
@@ -1,7 +1,7 @@
594167
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
594167
 
594167
 #include "alloc-util.h"
594167
-#include "keymap-util.h"
594167
+#include "localed-util.h"
594167
 #include "log.h"
594167
 #include "string-util.h"
594167
 #include "tests.h"