diff options
-rw-r--r-- | iconv/tst-gconv-init-failure.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iconv/tst-gconv-init-failure.c b/iconv/tst-gconv-init-failure.c index b29c5db6b8..b86958ab90 100644 --- a/iconv/tst-gconv-init-failure.c +++ b/iconv/tst-gconv-init-failure.c @@ -31,13 +31,13 @@ static void activate_test_gconv_modules (void) { - unsigned long ptr = getauxval (AT_EXECFN); - if (ptr == 0) + const char *ptr = getauxptr (AT_EXECFN); + if (ptr == NULL) { printf ("warning: AT_EXECFN not support, cannot run test\n"); exit (EXIT_UNSUPPORTED); } - char *test_program_directory = dirname (xstrdup ((const char *) ptr)); + char *test_program_directory = dirname (xstrdup (ptr)); TEST_VERIFY (setenv ("GCONV_PATH", test_program_directory, 1) == 0); free (test_program_directory); } |