From 8a09e437ccc23743f7e5f6f31523c390e12fcb18 Mon Sep 17 00:00:00 2001 From: sanjiyan Date: Mon, 19 Feb 2001 15:04:13 +0000 Subject: [PATCH] error -> errno error_proto -> EPROTO --- socket/socket_mcjoin6.c | 4 ++-- socket/socket_mcleave6.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/socket/socket_mcjoin6.c b/socket/socket_mcjoin6.c index 28319ea..f72ce3d 100644 --- a/socket/socket_mcjoin6.c +++ b/socket/socket_mcjoin6.c @@ -6,7 +6,7 @@ #include "byte.h" #include "haveip6.h" #include "ip6.h" -#include "error.h" +#include "errno.h" #ifndef IPV6_ADD_MEMBERSHIP #ifdef IPV6_JOIN_GROUP @@ -32,7 +32,7 @@ int socket_mcjoin6(int s,const char ip[16],int interface) #endif return setsockopt(s,IPPROTO_IPV6,IPV6_ADD_MEMBERSHIP,&opt,sizeof opt); #else - errno=error_proto; + errno=EPROTO; return -1; #endif } diff --git a/socket/socket_mcleave6.c b/socket/socket_mcleave6.c index 4b8583d..2e8e706 100644 --- a/socket/socket_mcleave6.c +++ b/socket/socket_mcleave6.c @@ -5,7 +5,7 @@ #include "socket.h" #include "byte.h" #include "haveip6.h" -#include "error.h" +#include "errno.h" #include "ip6.h" #ifndef IPV6_DROP_MEMBERSHIP