aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1995-11-03 18:27:18 +0000
committerPeter Wemm <peter@FreeBSD.org>1995-11-03 18:27:18 +0000
commit0b5e4d48b388cea01b1723dfd4e1ffc1f2c13536 (patch)
tree8efe188079c711b0c0872014a3da4ade74edffeb
parentc24ee47ce0d21440af5aec75a730d7ac42314c02 (diff)
downloadsrc-0b5e4d48b388cea01b1723dfd4e1ffc1f2c13536.tar.gz
src-0b5e4d48b388cea01b1723dfd4e1ffc1f2c13536.zip
Notes
-rw-r--r--usr.bin/symorder/symorder.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/symorder/symorder.c b/usr.bin/symorder/symorder.c
index 4a1b79f99676..2cac53c2e745 100644
--- a/usr.bin/symorder/symorder.c
+++ b/usr.bin/symorder/symorder.c
@@ -196,7 +196,7 @@ main(argc, argv)
free((void *)symtab);
symtab = newtab;
} else {
- symfound = symkept = i;
+ symkept = i;
}
newstrings = malloc(strtabsize);
@@ -211,7 +211,8 @@ main(argc, argv)
continue;
if (clean && !savesymb(symp))
symp->n_type &= ~N_EXT;
- }
+ } else if (clean)
+ symfound++;
symp->n_un.n_strx -= sizeof(int);
(void)strcpy(t, &strings[symp->n_un.n_strx]);
symp->n_un.n_strx = (t - newstrings) + sizeof(int);