about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Modules/parameter.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index fb3557754..4d2ef7788 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-08  Peter Stephenson  <pws@csr.com>
+
+	* 19044: Src/Modules/parameter.c: several typos in code
+	to assign suffix aliases using the parameter saliases.
+
 2003-09-03  Oliver Kiddle  <opk@zsh.org>
 
 	* 19021: Completion/Zsh/Command/_cd: in command position,
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
index dc92aaaf8..8e70e111d 100644
--- a/Src/Modules/parameter.c
+++ b/Src/Modules/parameter.c
@@ -1617,7 +1617,7 @@ scanpmuserdirs(HashTable ht, ScanFunc func, int flags)
 static void
 setalias(HashTable ht, Param pm, char *value, int flags)
 {
-    ht->addnode(aliastab, ztrdup(pm->nam),
+    ht->addnode(ht, ztrdup(pm->nam),
 		createaliasnode(value, flags));
 }
 
@@ -1646,21 +1646,21 @@ setpmgalias(Param pm, char *value)
 static void
 setpmdisgalias(Param pm, char *value)
 {
-    setgalias(aliastab, pm, value, ALIAS_GLOBAL|DISABLED);
+    setalias(aliastab, pm, value, ALIAS_GLOBAL|DISABLED);
 }
 
 /**/
 static void
 setpmsalias(Param pm, char *value)
 {
-    setgalias(sufaliastab, pm, value, 0);
+    setalias(sufaliastab, pm, value, ALIAS_SUFFIX);
 }
 
 /**/
 static void
 setpmdissalias(Param pm, char *value)
 {
-    setgalias(sufaliastab, pm, value, DISABLED);
+    setalias(sufaliastab, pm, value, ALIAS_SUFFIX|DISABLED);
 }
 
 /**/