mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 07:44:29 +02:00
- (dtucker] [misc.c] Shrink the area covered by USE_ROUTINGDOMAIN more
to eliminate an unused variable warning.
This commit is contained in:
parent
e83c3ea4b8
commit
cb5a1b6f70
@ -165,6 +165,8 @@
|
|||||||
too.
|
too.
|
||||||
- (dtucker) [misc.c] Move the routingdomain ifdef to allow the socket to
|
- (dtucker) [misc.c] Move the routingdomain ifdef to allow the socket to
|
||||||
be created.
|
be created.
|
||||||
|
- (dtucker] [misc.c] Shrink the area covered by USE_ROUTINGDOMAIN more
|
||||||
|
to eliminate an unused variable warning.
|
||||||
|
|
||||||
20091226
|
20091226
|
||||||
- (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1
|
- (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1
|
||||||
|
6
misc.c
6
misc.c
@ -163,12 +163,12 @@ socket_rdomain(int domain, int type, int protocol, int rdomain)
|
|||||||
if (rdomain == -1)
|
if (rdomain == -1)
|
||||||
return (sock);
|
return (sock);
|
||||||
|
|
||||||
#ifdef USE_ROUTINGDOMAIN
|
|
||||||
switch (domain) {
|
switch (domain) {
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
ipproto = IPPROTO_IPV6;
|
ipproto = IPPROTO_IPV6;
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
|
#ifdef USE_ROUTINGDOMAIN
|
||||||
debug2("socket %d af %d setting rdomain %d",
|
debug2("socket %d af %d setting rdomain %d",
|
||||||
sock, domain, rdomain);
|
sock, domain, rdomain);
|
||||||
if (setsockopt(sock, ipproto, SO_RDOMAIN, &rdomain,
|
if (setsockopt(sock, ipproto, SO_RDOMAIN, &rdomain,
|
||||||
@ -178,6 +178,7 @@ socket_rdomain(int domain, int type, int protocol, int rdomain)
|
|||||||
close(sock);
|
close(sock);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
debug("socket %d af %d does not support rdomain %d",
|
debug("socket %d af %d does not support rdomain %d",
|
||||||
@ -187,9 +188,6 @@ socket_rdomain(int domain, int type, int protocol, int rdomain)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (sock);
|
return (sock);
|
||||||
#else
|
|
||||||
return (-1);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Characters considered whitespace in strsep calls. */
|
/* Characters considered whitespace in strsep calls. */
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "includes.h"
|
||||||
|
|
||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user