diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-10-01 02:55:24 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-10-01 02:55:24 +0000 |
commit | d474ccfc0f98185db0357693261b69c02c077f7f (patch) | |
tree | d13e8720c4f2bc73fd590ba90c71f144297668c7 /libexec/ld.so/dlfcn.c | |
parent | 63b7eadd18b189d3f83c4f6a40123fe622c85b2a (diff) |
Add break statements in switch missing from revision 1.32.
Diffstat (limited to 'libexec/ld.so/dlfcn.c')
-rw-r--r-- | libexec/ld.so/dlfcn.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libexec/ld.so/dlfcn.c b/libexec/ld.so/dlfcn.c index ded0396992b..9f6b035085d 100644 --- a/libexec/ld.so/dlfcn.c +++ b/libexec/ld.so/dlfcn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dlfcn.c,v 1.32 2003/09/25 21:56:20 millert Exp $ */ +/* $OpenBSD: dlfcn.c,v 1.33 2003/10/01 02:55:23 millert Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -240,22 +240,31 @@ dlerror(void) switch (_dl_errno) { case 0: /* NO ERROR */ errmsg = NULL; + break; case DL_NOT_FOUND: errmsg = "File not found"; + break; case DL_CANT_OPEN: errmsg = "Can't open file"; + break; case DL_NOT_ELF: errmsg = "File not an ELF object"; + break; case DL_CANT_OPEN_REF: errmsg = "Can't open referenced object"; + break; case DL_CANT_MMAP: errmsg = "Can't map ELF object"; + break; case DL_INVALID_HANDLE: errmsg = "Invalid handle"; + break; case DL_NO_SYMBOL: errmsg = "Unable to resolve symbol"; + break; case DL_INVALID_CTL: errmsg = "Invalid dlctl() command"; + break; default: errmsg = "Unknown error"; } |