diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-13 16:33:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-13 16:33:41 +0000 |
commit | 434854ab7618ebead2b645af66407e0ce9e06d58 (patch) | |
tree | 06afe950a15c63bc17a21e0a8ce624f0bc6c7571 /libexec/ld.so/ldconfig/prebind.c | |
parent | 84074750d095c6c7ad8744b774c9df7a9f472dd4 (diff) |
some knf and delinting; ok drahn
Diffstat (limited to 'libexec/ld.so/ldconfig/prebind.c')
-rw-r--r-- | libexec/ld.so/ldconfig/prebind.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ld.so/ldconfig/prebind.c b/libexec/ld.so/ldconfig/prebind.c index 3d32a25a8e0..f8064ad0b98 100644 --- a/libexec/ld.so/ldconfig/prebind.c +++ b/libexec/ld.so/ldconfig/prebind.c @@ -1,4 +1,4 @@ -/* $OpenBSD: prebind.c,v 1.2 2006/05/13 05:59:28 deraadt Exp $ */ +/* $OpenBSD: prebind.c,v 1.3 2006/05/13 16:33:40 deraadt Exp $ */ /* * Copyright (c) 2006 Dale Rahn <drahn@dalerahn.com> * @@ -494,6 +494,7 @@ elf_load_object(void *pexe, const char *name) /* XXX can only occur in programs */ curbin->interp = strdup((char *)((char *)pexe + phdr[i].p_offset)); + break; default: break; } @@ -525,7 +526,7 @@ elf_load_object(void *pexe, const char *name) dynp++; } - needed_list = calloc((needed_cnt + 1), (sizeof (Elf_Word))); + needed_list = calloc((needed_cnt + 1), sizeof(Elf_Word)); if (needed_list == NULL) { printf("unable to allocate needed_list for %s\n", name); exit(10); @@ -705,7 +706,7 @@ map_to_virt(Elf_Phdr *phdr, Elf_Ehdr *ehdr, Elf_Addr base, u_long *vaddr) printf("%lx, base %lx %lx %llx\n", *vaddr, base, phdr[i].p_vaddr, phdr[i].p_offset ); #endif - + break; default: break; } |