瀏覽代碼

cleanup a little

Mike Frysinger 18 年之前
父節點
當前提交
138adeccbd
共有 1 個文件被更改,包括 2 次插入6 次删除
  1. 2 6
      test/dlopen/dltest.c

+ 2 - 6
test/dlopen/dltest.c

@@ -4,11 +4,7 @@
 #include <dlfcn.h>
 #include <stdint.h>
 
-#ifdef __UCLIBC__
-extern void _dlinfo(void);
-#endif
-
-int main(int argc, char **argv) 
+int main(int argc, char **argv)
 {
 	int ret = EXIT_SUCCESS;
 	void *handle;
@@ -18,7 +14,7 @@ int main(int argc, char **argv)
 
 	handle = dlopen (LIBNAME, RTLD_LAZY);
 	if (!handle) {
-		fprintf(stderr, "Could not open ./libtest.so: %s\n", dlerror());
+		fprintf(stderr, "Could not open ./%s: %s\n", LIBNAME, dlerror());
 		exit(1);
 	}