diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-14 03:16:15 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-14 03:16:15 +0000 |
commit | e63dc855fe4ff1aa0029ebf9813134860a34ccdf (patch) | |
tree | c2aa960c67a99a878c8902943399029fa598683f /sys/ddb/db_elf.c | |
parent | 71eb96ce8a9190e7ffeccbabd7a5ec4f3b4fc72f (diff) |
Final __P removal plus some cosmetic fixups
Diffstat (limited to 'sys/ddb/db_elf.c')
-rw-r--r-- | sys/ddb/db_elf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/ddb/db_elf.c b/sys/ddb/db_elf.c index a280085b568..bcdc8dc0aa0 100644 --- a/sys/ddb/db_elf.c +++ b/sys/ddb/db_elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_elf.c,v 1.4 2002/03/14 01:26:51 millert Exp $ */ +/* $OpenBSD: db_elf.c,v 1.5 2002/03/14 03:16:03 millert Exp $ */ /* $NetBSD: db_elf.c,v 1.13 2000/07/07 21:55:18 jhawk Exp $ */ /*- @@ -156,7 +156,7 @@ db_elf_sym_init(symsize, symtab, esymtab, name) * stabs data found when booting bsd.gdb. */ shp = (Elf_Shdr *)((char *)symtab + elf->e_shoff); - shstrtab = (char*)symtab + shp[elf->e_shstrndx].sh_offset; + shstrtab = (char *)symtab + shp[elf->e_shstrndx].sh_offset; for (i = 0; i < elf->e_shnum; i++) { if (strcmp(".strtab", shstrtab+shp[i].sh_name) == 0) { strtab_start = (char *)symtab + shp[i].sh_offset; @@ -216,10 +216,10 @@ db_elf_find_strtab(stab) char *shstrtab; int i; - shstrtab = (char*)elf + shp[elf->e_shstrndx].sh_offset; + shstrtab = (char *)elf + shp[elf->e_shstrndx].sh_offset; for (i = 0; i < elf->e_shnum; i++) { if (strcmp(".strtab", shstrtab+shp[i].sh_name) == 0) - return ((char*)elf + shp[i].sh_offset); + return ((char *)elf + shp[i].sh_offset); } return (NULL); |