]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
locale: rename context_free() to context_clear()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 22 Nov 2018 21:12:45 +0000 (06:12 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 22 Nov 2018 21:22:30 +0000 (06:22 +0900)
src/locale/keymap-util.c
src/locale/keymap-util.h
src/locale/localed.c
src/locale/test-keymap-util.c

index 18668a99ab86e7928d54b9fe60854033d70f69d4..495261f4d795ce37317c23fcbafc60126cf64992 100644 (file)
@@ -68,7 +68,7 @@ static void context_free_locale(Context *c) {
                 c->locale[p] = mfree(c->locale[p]);
 }
 
-void context_free(Context *c) {
+void context_clear(Context *c) {
         context_free_locale(c);
         context_free_x11(c);
         context_free_vconsole(c);
index 902da689c884d38f6dfd3cd77046bb00c903418b..278c74b2ba3fe65f5a5fc49905d466142e232854 100644 (file)
@@ -32,7 +32,7 @@ int locale_read_data(Context *c, sd_bus_message *m);
 int vconsole_read_data(Context *c, sd_bus_message *m);
 int x11_read_data(Context *c, sd_bus_message *m);
 
-void context_free(Context *c);
+void context_clear(Context *c);
 int vconsole_convert_to_x11(Context *c);
 int vconsole_write_data(Context *c);
 int x11_convert_to_vconsole(Context *c);
index bb5b132ce7fc7f3e3ad3655ba0094b7ba4c0e979..b9dffeae5a496f3e2f511d2c3dc7badf81ae045d 100644 (file)
@@ -711,7 +711,7 @@ static int connect_bus(Context *c, sd_event *event, sd_bus **_bus) {
 }
 
 int main(int argc, char *argv[]) {
-        _cleanup_(context_free) Context context = {
+        _cleanup_(context_clear) Context context = {
                 .locale_mtime = USEC_INFINITY,
                 .vc_mtime = USEC_INFINITY,
                 .x11_mtime = USEC_INFINITY,
index e20731b2537621a129ba2f6ca9f7f2633f00d326..2f82891d60c0b0d1251c8e3f2bdd97b20c764410 100644 (file)
@@ -65,7 +65,7 @@ static void test_find_legacy_keymap(void) {
 }
 
 static void test_vconsole_convert_to_x11(void) {
-        _cleanup_(context_free) Context c = {};
+        _cleanup_(context_clear) Context c = {};
 
         log_info("/*** %s ***/", __func__);
 
@@ -119,7 +119,7 @@ static void test_vconsole_convert_to_x11(void) {
 }
 
 static void test_x11_convert_to_vconsole(void) {
-        _cleanup_(context_free) Context c = {};
+        _cleanup_(context_clear) Context c = {};
         int r;
 
         log_info("/*** %s ***/", __func__);