about summary refs log tree commit diff
path: root/test/test-dlopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-dlopen.c')
-rw-r--r--test/test-dlopen.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/test-dlopen.c b/test/test-dlopen.c
index 3db6adba..d08d9092 100644
--- a/test/test-dlopen.c
+++ b/test/test-dlopen.c
@@ -5,17 +5,19 @@
 
 int main(int argc, char **argv) {
 
-  if (!getenv("TEST_DLOPEN_TARGET"))
-    return 1;
-  void* lib = dlopen(getenv("TEST_DLOPEN_TARGET"), RTLD_LAZY);
+  if (!getenv("TEST_DLOPEN_TARGET")) return 1;
+  void *lib = dlopen(getenv("TEST_DLOPEN_TARGET"), RTLD_LAZY);
   if (!lib) {
+
     perror(dlerror());
     return 2;
+
   }
-  int (*func)(int, char**) = dlsym(lib, "main_exported");
-  if (!func)
-    return 3;
-  
+
+  int (*func)(int, char **) = dlsym(lib, "main_exported");
+  if (!func) return 3;
+
   return func(argc, argv);
 
 }
+