summaryrefslogtreecommitdiff
path: root/Src/init.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-05-29 17:01:07 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-05-29 17:01:07 +0000
commit6ab77f00ff8c4a30bf663f6e4ee39b9b23d3ef32 (patch)
tree2a64c4f75861838773bc4a9410f33c488bb4aa89 /Src/init.c
parent52e5a75a7a8a4a16579e708a006f6346ce765aeb (diff)
downloadzsh-6ab77f00ff8c4a30bf663f6e4ee39b9b23d3ef32.tar.gz
zsh-6ab77f00ff8c4a30bf663f6e4ee39b9b23d3ef32.zip
23488: tidy up module interface and documentation
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Src/init.c b/Src/init.c
index fce8adcd5..13078ea2e 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -701,7 +701,7 @@ setupvals(void)
close(tmppipe[1]);
}
- addhookdefs(argzero, zshhooks, sizeof(zshhooks)/sizeof(*zshhooks));
+ (void)addhookdefs(argzero, zshhooks, sizeof(zshhooks)/sizeof(*zshhooks));
init_eprog();
@@ -979,7 +979,7 @@ run_init_scripts(void)
* Always attempt to load the newuser module to perform
* checks for new zsh users. Don't care if we can't load it.
*/
- if (!load_module_silence("zsh/newuser", NULL, 1)) {
+ if (!load_module("zsh/newuser", NULL, 1)) {
/* Unload it immediately. */
unload_named_module("zsh/newuser", "zsh", 1);
}
@@ -1152,7 +1152,7 @@ init_bltinmods(void)
#include "bltinmods.list"
- (void)load_module("zsh/main", NULL);
+ (void)load_module("zsh/main", NULL, 0);
}
/**/
@@ -1213,8 +1213,8 @@ char *
autoload_zleread(char **lp, char **rp, int ha, int con)
{
zlereadptr = fallback_zleread;
- if (load_module("zsh/zle", NULL) != 1)
- (void)load_module("zsh/compctl", NULL);
+ if (load_module("zsh/zle", NULL, 0) != 1)
+ (void)load_module("zsh/compctl", NULL, 0);
return zlereadptr(lp, rp, ha, con);
}
@@ -1240,7 +1240,7 @@ static void
autoload_zlesetkeymap(int mode)
{
zlesetkeymapptr = noop_function_int;
- (void)load_module("zsh/zle", NULL);
+ (void)load_module("zsh/zle", NULL, 0);
(*zlesetkeymapptr)(mode);
}