aboutsummaryrefslogtreecommitdiffstats
path: root/man3/dlopen.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2007-05-14 21:11:42 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2007-05-14 21:11:42 +0000
commit4c44ffe5dca2a7572d2677bd7174e28d570d4a3e (patch)
treebecb4ce535227686fc4170f06e266c85d74bd200 /man3/dlopen.3
parent19dbfd0a9829c3d3142e38ca51f06dad606ef65d (diff)
downloadman-pages-4c44ffe5dca2a7572d2677bd7174e28d570d4a3e.tar.gz
Use symbolic constants in exit(2) calls
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));