aboutsummaryrefslogtreecommitdiffstats
path: root/man3/dlopen.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/dlopen.3')
-rw-r--r--man3/dlopen.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/dlopen.3 b/man3/dlopen.3
index 5c6ff8c2f9..c9ba55285c 100644
--- a/man3/dlopen.3
+++ b/man3/dlopen.3
@@ -377,7 +377,7 @@ main(int argc, char **argv)
handle = dlopen("libm.so", RTLD_LAZY);
if (!handle) {
fprintf(stderr, "%s\en", dlerror());
- exit(1);
+ exit(EXIT_FAILURE);
}
dlerror(); /* Clear any existing error */
@@ -386,7 +386,7 @@ main(int argc, char **argv)
*(void **) (&cosine) = dlsym(handle, "cos");
if ((error = dlerror()) != NULL) {
fprintf(stderr, "%s\en", error);
- exit(1);
+ exit(EXIT_FAILURE);
}
printf("%f\en", (*cosine)(2.0));