Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/libexec/ld.elf_so Use proper format string



details:   https://anonhg.NetBSD.org/src/rev/45863ca7e74d
branches:  trunk
changeset: 765355:45863ca7e74d
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue May 24 15:24:28 2011 +0000

description:
Use proper format string

diffstat:

 tests/libexec/ld.elf_so/h_df_1_noopen.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r cb1d36bd83fb -r 45863ca7e74d tests/libexec/ld.elf_so/h_df_1_noopen.c
--- a/tests/libexec/ld.elf_so/h_df_1_noopen.c   Tue May 24 15:23:41 2011 +0000
+++ b/tests/libexec/ld.elf_so/h_df_1_noopen.c   Tue May 24 15:24:28 2011 +0000
@@ -39,7 +39,7 @@
 
        handle = dlopen("libpthread.so", RTLD_NOLOAD);
        if (handle == NULL)
-               errx(1, dlerror());
+               errx(1, "%s", dlerror());
 
        printf("libpthread loaded successfully\n");
        return 0;



Home | Main Index | Thread Index | Old Index