diff options
Diffstat (limited to 'term-utils/wall.c')
-rw-r--r-- | term-utils/wall.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/term-utils/wall.c b/term-utils/wall.c index c2ac7ad12..4865ac7a1 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -103,11 +103,6 @@ main(int argc, char **argv) { size_t mbufsize; unsigned timeout = WRITE_TIME_OUT; - setlocale(LC_ALL, ""); - bindtextdomain(PACKAGE, LOCALEDIR); - textdomain(PACKAGE); - atexit(close_stdout); - static const struct option longopts[] = { { "nobanner", no_argument, 0, 'n' }, { "timeout", required_argument, 0, 't' }, @@ -116,6 +111,11 @@ main(int argc, char **argv) { { NULL, 0, 0, 0 } }; + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + atexit(close_stdout); + while ((ch = getopt_long(argc, argv, "nt:Vh", longopts, NULL)) != -1) { switch (ch) { case 'n': |