about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2021-07-22 13:00:52 -0700
committerFangrui Song <i@maskray.me>2021-08-27 17:26:07 -0700
commit6db4535a70acdbf258b52bd6c79ce56e226b4015 (patch)
treea8de0953e7c1e6ce911af00494de5813f63a2804
parentc0e9696c3ccf8f86a43ec893d5f4dd911a957140 (diff)
downloadglibc-6db4535a70acdbf258b52bd6c79ce56e226b4015.tar.gz
glibc-6db4535a70acdbf258b52bd6c79ce56e226b4015.tar.xz
glibc-6db4535a70acdbf258b52bd6c79ce56e226b4015.zip
Fix a return type in elf unload test
-rw-r--r--elf/unload8mod1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/unload8mod1.c b/elf/unload8mod1.c
index 42a4298b6e..8df93a0859 100644
--- a/elf/unload8mod1.c
+++ b/elf/unload8mod1.c
@@ -8,7 +8,7 @@ mod1 (void)
   mod2 ();
 }
 
-void
+int
 mod1b (void)
 {
   void *h = dlopen ("$ORIGIN/unload8mod3.so", RTLD_LAZY);
@@ -17,4 +17,5 @@ mod1b (void)
       puts ("dlopen unload8mod3.so failed");
       return 1;
     }
+  return 0;
 }