summaryrefslogtreecommitdiff
path: root/src/locale
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-06-14 09:08:00 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-06-14 20:56:23 +0900
commit3e5203b3eb2b06ef346eef13d64430542bbfb5c4 (patch)
treef6a5d3d47ce4d7bb651f461472dc219ddbcff23b /src/locale
parent3d36b5d7e7b191fca7c5c65dbab94d99cf5f0230 (diff)
downloadsystemd-3e5203b3eb2b06ef346eef13d64430542bbfb5c4.tar.gz
locale: rename keymap-util.[ch] -> localed-util.[ch]
As the file contains not only keymap related functions.
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/localed-util.c (renamed from src/locale/keymap-util.c)3
-rw-r--r--src/locale/localed-util.h (renamed from src/locale/keymap-util.h)0
-rw-r--r--src/locale/localed.c2
-rw-r--r--src/locale/meson.build10
-rw-r--r--src/locale/test-localed-util.c (renamed from src/locale/test-keymap-util.c)2
5 files changed, 8 insertions, 9 deletions
diff --git a/src/locale/keymap-util.c b/src/locale/localed-util.c
index 0717697e5b..598e89591c 100644
--- a/src/locale/keymap-util.c
+++ b/src/locale/localed-util.c
@@ -15,8 +15,7 @@
#include "fileio.h"
#include "fs-util.h"
#include "kbd-util.h"
-#include "keymap-util.h"
-#include "locale-util.h"
+#include "localed-util.h"
#include "macro.h"
#include "mkdir-label.h"
#include "nulstr-util.h"
diff --git a/src/locale/keymap-util.h b/src/locale/localed-util.h
index 5470d1bb9b..5470d1bb9b 100644
--- a/src/locale/keymap-util.h
+++ b/src/locale/localed-util.h
diff --git a/src/locale/localed.c b/src/locale/localed.c
index 9718c5b95f..2c324efb14 100644
--- a/src/locale/localed.c
+++ b/src/locale/localed.c
@@ -20,7 +20,7 @@
#include "def.h"
#include "dlfcn-util.h"
#include "kbd-util.h"
-#include "keymap-util.h"
+#include "localed-util.h"
#include "macro.h"
#include "main-func.h"
#include "missing_capability.h"
diff --git a/src/locale/meson.build b/src/locale/meson.build
index 72c44aedcf..c1ae34069c 100644
--- a/src/locale/meson.build
+++ b/src/locale/meson.build
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
systemd_localed_sources = files(
+ 'localed-util.c',
+ 'localed-util.h',
'localed.c',
- 'keymap-util.c',
- 'keymap-util.h',
)
localectl_sources = files('localectl.c')
@@ -30,7 +30,7 @@ if conf.get('ENABLE_LOCALED') == 1
endif
tests += [
- [files('test-keymap-util.c',
- 'keymap-util.c',
- 'keymap-util.h')],
+ [files('test-localed-util.c',
+ 'localed-util.c',
+ 'localed-util.h')],
]
diff --git a/src/locale/test-keymap-util.c b/src/locale/test-localed-util.c
index 668f94ec80..b48fc9f58f 100644
--- a/src/locale/test-keymap-util.c
+++ b/src/locale/test-localed-util.c
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include "alloc-util.h"
-#include "keymap-util.h"
+#include "localed-util.h"
#include "log.h"
#include "string-util.h"
#include "tests.h"