about summary refs log tree commit diff
path: root/Src/Modules/zftp.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-10-26 11:09:46 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-10-26 11:09:46 +0000
commitf1a55ddaa932520e637207973320f4e96b709131 (patch)
tree9c8c2e41703cd8374ffd26a3cd953303c9051f7b /Src/Modules/zftp.c
parentbb5d460f51959b924a63a70e9f29d66b4c6a6535 (diff)
downloadzsh-f1a55ddaa932520e637207973320f4e96b709131.tar.gz
zsh-f1a55ddaa932520e637207973320f4e96b709131.tar.xz
zsh-f1a55ddaa932520e637207973320f4e96b709131.zip
15793: Src/Modules/zftp.c: require zsh/net/tcp explicitly.
15171: Doc/Zsh/zftpsys.yo: minor changes of phrasing
Diffstat (limited to 'Src/Modules/zftp.c')
-rw-r--r--Src/Modules/zftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c
index c507a85ce..39df87fd7 100644
--- a/Src/Modules/zftp.c
+++ b/Src/Modules/zftp.c
@@ -3107,7 +3107,8 @@ zftpexithook(Hookdef d, void *dummy)
 int
 setup_(Module m)
 {
-    return 0;
+    /* setup_ returns 0 for success. require_module returns 1 for success. */
+    return !require_module("", "zsh/net/tcp", 0, 0);
 }
 
 /**/