summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-07-28 06:21:53 +0000
committerkan <kan@FreeBSD.org>2004-07-28 06:21:53 +0000
commit4caefcbb3efd3493a8f32539679faf818ae0e1f1 (patch)
treefa20bec983805e312b0374afcf51d79ab4e27e9d /sys/ddb
parent6cabb1fb0d2ee2931258c88746b2c7b7224e9632 (diff)
downloadFreeBSD-src-4caefcbb3efd3493a8f32539679faf818ae0e1f1.zip
FreeBSD-src-4caefcbb3efd3493a8f32539679faf818ae0e1f1.tar.gz
Avoid casts as lvalues.
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/ddb/db_main.c b/sys/ddb/db_main.c
index 32dd347..0a2cd56 100644
--- a/sys/ddb/db_main.c
+++ b/sys/ddb/db_main.c
@@ -170,9 +170,11 @@ db_init(void)
if (ksym_end > ksym_start && ksym_start != 0) {
symtab = ksym_start;
- tabsz = *((Elf_Size*)symtab)++;
+ tabsz = *((Elf_Size*)symtab);
+ tabsz += sizeof(Elf_Size);
strtab = symtab + tabsz;
- strsz = *((Elf_Size*)strtab)++;
+ strsz = *((Elf_Size*)strtab);
+ strsz += sizeof(Elf_Size);
if (strtab + strsz <= ksym_end) {
db_add_symbol_table((char *)symtab,
(char *)(symtab + tabsz), "elf", (char *)strtab);
OpenPOWER on IntegriCloud