diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-18 10:55:45 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-18 10:55:45 +0000 |
commit | a2159285e80508bb682d90a71270fbddada8bd05 (patch) | |
tree | c491bf7a28d7f8fac7ab05cc860c01dea95c19b1 /Src/hashtable.c | |
parent | 805381040dd69dd02b78423d2d71913b33f3cc33 (diff) | |
download | zsh-a2159285e80508bb682d90a71270fbddada8bd05.tar.gz zsh-a2159285e80508bb682d90a71270fbddada8bd05.tar.xz zsh-a2159285e80508bb682d90a71270fbddada8bd05.zip |
zsh-3.1.5-pws-22 zsh-3.1.5-pws-22
Diffstat (limited to 'Src/hashtable.c')
-rw-r--r-- | Src/hashtable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/hashtable.c b/Src/hashtable.c index b534d8ac1..e80461b4e 100644 --- a/Src/hashtable.c +++ b/Src/hashtable.c @@ -880,7 +880,7 @@ printshfuncnode(HashNode hn, int printflags) return; } - t = getpermtext((void *) dupstruct((void *) f->funcdef)); + t = getpermtext((void *) f->funcdef); quotedzputs(f->nam, stdout); printf(" () {\n\t"); zputs(t, stdout); @@ -1327,7 +1327,7 @@ addhistnode(HashTable ht, char *nam, void *nodeptr) { HashNode oldnode = addhashnode2(ht, nam, nodeptr); Histent he = (Histent)nodeptr; - if (oldnode && oldnode != nodeptr) { + if (oldnode && oldnode != (HashNode)nodeptr) { if (he->flags & HIST_MAKEUNIQUE || (he->flags & HIST_FOREIGN && (Histent)oldnode == he->up)) { he->flags |= HIST_DUP; |