summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--misc.c6
-rw-r--r--roaming_client.c2
3 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 8266723e8..adb52db3a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
16920091226 17120091226
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
diff --git a/misc.c b/misc.c
index 08a80226d..f62f8efc6 100644
--- a/misc.c
+++ b/misc.c
@@ -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>