projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93e6dee
)
Avoid "unused variable" warning when NO_IPV6 defined.
author
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Mon, 3 Sep 2007 20:52:56 +0000
(20:52 +0000)
committer
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Mon, 3 Sep 2007 20:52:56 +0000
(20:52 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@7710
cda61777
-01e9-0310-a592-
d414129be87e
config.c
patch
|
blob
|
blame
|
history
diff --git
a/config.c
b/config.c
index
d5b50dd
..
fd1379a
100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-1049,7
+1049,9
@@
static void portfwd_handler(union control *ctrl, void *dlg,
{
static const char *const afs = "A46";
char *afp = strchr(afs, *p);
+#ifndef NO_IPV6
int idx = afp ? afp-afs : 0;
+#endif
if (afp)
p++;
#ifndef NO_IPV6