diff options
author | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2018-06-20 00:13:09 +0000 |
---|---|---|
committer | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2018-06-20 00:13:09 +0000 |
commit | a3552326dc11215a0a3fe0fe50f7389847ab9fde (patch) | |
tree | 6e975170cf5a61cfa20099cef968544f33f75573 /usr.bin/uniq | |
parent | 2d2aba181d9b55ac0ffd6344d7bec67269a34698 (diff) | |
download | src-test2-a3552326dc11215a0a3fe0fe50f7389847ab9fde.tar.gz src-test2-a3552326dc11215a0a3fe0fe50f7389847ab9fde.zip |
Notes
Diffstat (limited to 'usr.bin/uniq')
-rw-r--r-- | usr.bin/uniq/uniq.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c index d47893ca5578..862b7525e82a 100644 --- a/usr.bin/uniq/uniq.c +++ b/usr.bin/uniq/uniq.c @@ -87,17 +87,6 @@ static wchar_t *skip(wchar_t *); static void obsolete(char *[]); static void usage(void); -static void -strerror_init(void) -{ - - /* - * Cache NLS data before entering capability mode. - * XXXPJD: There should be strerror_init() and strsignal_init() in libc. - */ - (void)catopen("libc", NL_CAT_LOCALE); -} - int main (int argc, char *argv[]) { @@ -177,7 +166,7 @@ main (int argc, char *argv[]) } } - strerror_init(); + caph_cache_catpages(); if (caph_enter() < 0) err(1, "unable to enter capability mode"); |