about summary refs log tree commit diff
path: root/Src/Modules/parameter.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules/parameter.c')
-rw-r--r--Src/Modules/parameter.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
index 14f05d41d..bd0d68c67 100644
--- a/Src/Modules/parameter.c
+++ b/Src/Modules/parameter.c
@@ -620,28 +620,23 @@ boot_parameter(Module m)
      * As an example for autoloaded parameters, this is probably a bad
      * example, because we the zsh core doesn't support creation of
      * special hashes, yet. */
-    Param pm;
 
-    if ((pm = (Param) gethashnode2(paramtab, PAR_NAM)))
-	unsetparam_pm(pm, 0, 1);
+    unsetparam(PAR_NAM);
     if (!(parpm = createspecialhash(PAR_NAM, getpmparameter,
 				    scanpmparameters)))
 	return 1;
     parpm->flags |= PM_READONLY;
-    if ((pm = (Param) gethashnode2(paramtab, CMD_NAM)))
-	unsetparam_pm(pm, 0, 1);
+    unsetparam(CMD_NAM);
     if (!(cmdpm = createspecialhash(CMD_NAM, getpmcommand,
 				    scanpmcommands)))
 	return 1;
     cmdpm->sets.hfn = setpmcommands;
-    if ((pm = (Param) gethashnode2(paramtab, FUN_NAM)))
-	unsetparam_pm(pm, 0, 1);
+    unsetparam(FUN_NAM);
     if (!(funpm = createspecialhash(FUN_NAM, getpmfunction,
 				    scanpmfunctions)))
 	return 1;
     funpm->sets.hfn = setpmfunctions;
-    if ((pm = (Param) gethashnode2(paramtab, OPT_NAM)))
-	unsetparam_pm(pm, 0, 1);
+    unsetparam(OPT_NAM);
     if (!(optpm = createspecialhash(OPT_NAM, getpmoption,
 				    scanpmoptions)))
 	return 1;