diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 20:09:01 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 20:09:01 +1100 |
commit | cb5a1b6f7028dc3e3bf9f5875aee4a071eefe359 (patch) | |
tree | 0cf02efe5dae48e4b69166c3fe1d6751b02a62e6 | |
parent | e83c3ea4b8086c04c9ba0d012808d9c65c0bbe65 (diff) |
- (dtucker] [misc.c] Shrink the area covered by USE_ROUTINGDOMAIN more
to eliminate an unused variable warning.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | misc.c | 6 | ||||
-rw-r--r-- | roaming_client.c | 2 |
3 files changed, 6 insertions, 4 deletions
@@ -165,6 +165,8 @@ | |||
165 | too. | 165 | too. |
166 | - (dtucker) [misc.c] Move the routingdomain ifdef to allow the socket to | 166 | - (dtucker) [misc.c] Move the routingdomain ifdef to allow the socket to |
167 | be created. | 167 | be created. |
168 | - (dtucker] [misc.c] Shrink the area covered by USE_ROUTINGDOMAIN more | ||
169 | to eliminate an unused variable warning. | ||
168 | 170 | ||
169 | 20091226 | 171 | 20091226 |
170 | - (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1 | 172 | - (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1 |
@@ -163,12 +163,12 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) | |||
163 | if (rdomain == -1) | 163 | if (rdomain == -1) |
164 | return (sock); | 164 | return (sock); |
165 | 165 | ||
166 | #ifdef USE_ROUTINGDOMAIN | ||
167 | switch (domain) { | 166 | switch (domain) { |
168 | case AF_INET6: | 167 | case AF_INET6: |
169 | ipproto = IPPROTO_IPV6; | 168 | ipproto = IPPROTO_IPV6; |
170 | /* FALLTHROUGH */ | 169 | /* FALLTHROUGH */ |
171 | case AF_INET: | 170 | case AF_INET: |
171 | #ifdef USE_ROUTINGDOMAIN | ||
172 | debug2("socket %d af %d setting rdomain %d", | 172 | debug2("socket %d af %d setting rdomain %d", |
173 | sock, domain, rdomain); | 173 | sock, domain, rdomain); |
174 | if (setsockopt(sock, ipproto, SO_RDOMAIN, &rdomain, | 174 | if (setsockopt(sock, ipproto, SO_RDOMAIN, &rdomain, |
@@ -178,6 +178,7 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) | |||
178 | close(sock); | 178 | close(sock); |
179 | return (-1); | 179 | return (-1); |
180 | } | 180 | } |
181 | #endif | ||
181 | break; | 182 | break; |
182 | default: | 183 | default: |
183 | debug("socket %d af %d does not support rdomain %d", | 184 | debug("socket %d af %d does not support rdomain %d", |
@@ -187,9 +188,6 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) | |||
187 | } | 188 | } |
188 | 189 | ||
189 | return (sock); | 190 | return (sock); |
190 | #else | ||
191 | return (-1); | ||
192 | #endif | ||
193 | } | 191 | } |
194 | 192 | ||
195 | /* Characters considered whitespace in strsep calls. */ | 193 | /* Characters considered whitespace in strsep calls. */ |
diff --git a/roaming_client.c b/roaming_client.c index b77dbd59b..cfa57f613 100644 --- a/roaming_client.c +++ b/roaming_client.c | |||
@@ -15,6 +15,8 @@ | |||
15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include "includes.h" | ||
19 | |||
18 | #include <sys/queue.h> | 20 | #include <sys/queue.h> |
19 | #include <sys/types.h> | 21 | #include <sys/types.h> |
20 | #include <sys/socket.h> | 22 | #include <sys/socket.h> |