diff options
author | Adrian Szyndela <adrian.s@samsung.com> | 2020-04-02 11:48:41 +0200 |
---|---|---|
committer | Adrian Szyndela <adrian.s@samsung.com> | 2020-04-02 11:48:41 +0200 |
commit | cdbe5d4e22b9f688bb0d0c3123d3e83b43db0849 (patch) | |
tree | 681c492cca6de0605d0166caf64be6a668dbd349 /src/locale | |
parent | 7a446213ac882fe0286b64814ad1d4a341456531 (diff) | |
parent | db9c5ae73e23d816e2df2a3e10a9a2a60b5b3ed7 (diff) | |
download | systemd-cdbe5d4e22b9f688bb0d0c3123d3e83b43db0849.tar.gz systemd-cdbe5d4e22b9f688bb0d0c3123d3e83b43db0849.tar.bz2 systemd-cdbe5d4e22b9f688bb0d0c3123d3e83b43db0849.zip |
Merge v244 into tizen
systemd v244
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/keymap-util.c | 1 | ||||
-rw-r--r-- | src/locale/localectl.c | 24 | ||||
-rw-r--r-- | src/locale/localed.c | 1 |
3 files changed, 13 insertions, 13 deletions
diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c index f8c36c94f5..519dd0d188 100644 --- a/src/locale/keymap-util.c +++ b/src/locale/keymap-util.c @@ -1,7 +1,6 @@ /* SPDX-License-Identifier: LGPL-2.1+ */ #include <errno.h> -#include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> diff --git a/src/locale/localectl.c b/src/locale/localectl.c index 9fb5152110..6f2d37d222 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -2,10 +2,8 @@ #include <ftw.h> #include <getopt.h> -#include <locale.h> #include <stdbool.h> #include <stdlib.h> -#include <string.h> #include "sd-bus.h" @@ -23,6 +21,7 @@ #include "set.h" #include "spawn-polkit-agent.h" #include "strv.h" +#include "terminal-util.h" #include "verbs.h" #include "virt.h" @@ -385,15 +384,8 @@ static int help(void) { return log_oom(); printf("%s [OPTIONS...] COMMAND ...\n\n" - "Query or change system locale and keyboard settings.\n\n" - " -h --help Show this help\n" - " --version Show package version\n" - " --no-pager Do not pipe output into a pager\n" - " --no-ask-password Do not prompt for password\n" - " -H --host=[USER@]HOST Operate on remote host\n" - " -M --machine=CONTAINER Operate on local container\n" - " --no-convert Don't convert keyboard mappings\n\n" - "Commands:\n" + "%sQuery or change system locale and keyboard settings.%s\n" + "\nCommands:\n" " status Show current locale settings\n" " set-locale LOCALE... Set system locale\n" " list-locales Show known locales\n" @@ -406,8 +398,18 @@ static int help(void) { " list-x11-keymap-variants [LAYOUT]\n" " Show known X11 keyboard mapping variants\n" " list-x11-keymap-options Show known X11 keyboard mapping options\n" + "\nOptions:\n" + " -h --help Show this help\n" + " --version Show package version\n" + " --no-pager Do not pipe output into a pager\n" + " --no-ask-password Do not prompt for password\n" + " -H --host=[USER@]HOST Operate on remote host\n" + " -M --machine=CONTAINER Operate on local container\n" + " --no-convert Don't convert keyboard mappings\n" "\nSee the %s for details.\n" , program_invocation_short_name + , ansi_highlight() + , ansi_normal() , link ); diff --git a/src/locale/localed.c b/src/locale/localed.c index 8d0eec96a5..baf0bd102b 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -1,7 +1,6 @@ /* SPDX-License-Identifier: LGPL-2.1+ */ #include <errno.h> -#include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> |