about summary refs log tree commit diff
path: root/Src/Modules/tcp.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-06-02 22:14:25 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-06-02 22:14:25 +0000
commitfb0937a69eb38e744577aa94a6338135f6c1c9b4 (patch)
tree70c7404736602da0e91710dc3a991e3d2dc5377a /Src/Modules/tcp.c
parent30a139fe894f76ad256281b60a36c693bc561245 (diff)
downloadzsh-fb0937a69eb38e744577aa94a6338135f6c1c9b4.tar.gz
zsh-fb0937a69eb38e744577aa94a6338135f6c1c9b4.tar.xz
zsh-fb0937a69eb38e744577aa94a6338135f6c1c9b4.zip
Marked unused parameters with the new UNUSED() macro.
Diffstat (limited to 'Src/Modules/tcp.c')
-rw-r--r--Src/Modules/tcp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c
index 453f7bf21..586c2a19e 100644
--- a/Src/Modules/tcp.c
+++ b/Src/Modules/tcp.c
@@ -167,7 +167,7 @@ zsh_gethostbyname2(char const *name, int af)
 
 /**/
 mod_export struct hostent *
-zsh_getipnodebyname(char const *name, int af, int flags, int *errorp)
+zsh_getipnodebyname(char const *name, int af, UNUSED(int flags), int *errorp)
 {
     static struct hostent ahe;
     static char nbuf[16];
@@ -195,7 +195,7 @@ zsh_getipnodebyname(char const *name, int af, int flags, int *errorp)
 
 /**/
 mod_export void
-freehostent(struct hostent *ptr)
+freehostent(UNUSED(struct hostent *ptr))
 {
 }
 
@@ -337,7 +337,7 @@ tcp_connect(Tcp_session sess, char *addrp, struct hostent *zhost, int d_port)
 }
 
 static int
-bin_ztcp(char *nam, char **args, Options ops, int func)
+bin_ztcp(char *nam, char **args, Options ops, UNUSED(int func))
 {
     int herrno, err=1, destport, force=0, verbose=0, test=0, targetfd=0;
     SOCKLEN_T  len;
@@ -680,7 +680,7 @@ static struct builtin bintab[] = {
 
 /**/
 int
-setup_(Module m)
+setup_(UNUSED(Module m))
 {
     return 0;
 }
@@ -706,7 +706,7 @@ cleanup_(Module m)
 
 /**/
 int
-finish_(Module m)
+finish_(UNUSED(Module m))
 {
     return 0;
 }