summaryrefslogtreecommitdiff
path: root/tests/get-mb-cur-max.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2016-09-05 09:27:28 -0700
committerJim Meyering <meyering@fb.com>2016-09-05 21:49:17 -0700
commit6c96214b4d75de6bf6cf95514e39c494fdcc8c4f (patch)
treee9ba6f08a7b657c8e6a0771db7859592eaeca173 /tests/get-mb-cur-max.c
parentceac7eff585e024ee7b3ba812b0117b1fab7ed63 (diff)
downloadgrep-6c96214b4d75de6bf6cf95514e39c494fdcc8c4f.tar.gz
maint: switch from gnulib's progname to getprogname module
* gnulib: Update to latest, for its new getprogname module. * bootstrap.conf (avoided_gnulib_modules): Include the getprogname module rather than the now-obsolescent progname. * src/grep.c: Include "getprogname.h" rather than "progname.h" and remove any use of set_program_name. * tests/dfa-match-aux.c (main): Likewise. * tests/get-mb-cur-max.c (main): Likewise. * src/grep.c (usage, main): Use getprogname() in place of program_name.
Diffstat (limited to 'tests/get-mb-cur-max.c')
-rw-r--r--tests/get-mb-cur-max.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/get-mb-cur-max.c b/tests/get-mb-cur-max.c
index 403beb42..6e927963 100644
--- a/tests/get-mb-cur-max.c
+++ b/tests/get-mb-cur-max.c
@@ -21,12 +21,11 @@
#include <stdio.h>
#include <stdlib.h>
-#include "progname.h"
+#include "getprogname.h"
int
main (int argc, char **argv)
{
- set_program_name (argv[0]);
if (1 < argc && setlocale (LC_ALL, argv[1]))
{
printf ("%d\n", (int) MB_CUR_MAX);