libc/netdb: Remove unnecessary CONFIG_LIBC_NETDB checks

Since it already checked by Make.defs and CMakeLists.txt

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2024-09-14 10:10:38 +08:00 committed by Xiang Xiao
parent f8bd93575c
commit 3a677e3268
13 changed files with 0 additions and 39 deletions

View File

@ -28,8 +28,6 @@
#include "netdb/lib_netdb.h"
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Public Functions
****************************************************************************/
@ -71,4 +69,3 @@ FAR struct hostent *gethostbyaddr(FAR const void *addr,
return ret == 0 ? res : NULL;
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -37,8 +37,6 @@
#include "netdb/lib_netdb.h"
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Private Type Definitions
****************************************************************************/
@ -441,4 +439,3 @@ int gethostbyaddr_r(FAR const void *addr, socklen_t len, int type,
return ret;
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -26,8 +26,6 @@
#include <netdb.h>
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Public Functions
****************************************************************************/
@ -65,4 +63,3 @@ FAR struct hostent *gethostbyname(FAR const char *name)
return gethostbyname2(name, AF_UNSPEC);
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -28,8 +28,6 @@
#include "netdb/lib_netdb.h"
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Public Functions
****************************************************************************/
@ -73,4 +71,3 @@ FAR struct hostent *gethostbyname2(FAR const char *name, int type)
return ret == 0 ? res : NULL;
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -32,8 +32,6 @@
#include "netdb/lib_netdb.h"
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Public Functions
****************************************************************************/
@ -104,4 +102,3 @@ int gethostbyname2_r(FAR const char *name, int type,
return ret;
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -26,8 +26,6 @@
#include <netdb.h>
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Public Functions
****************************************************************************/
@ -73,4 +71,3 @@ int gethostbyname_r(FAR const char *name,
host, buf, buflen, result, h_errnop);
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -42,8 +42,6 @@
#include "netdb/lib_dns.h"
#include "netdb/lib_netdb.h"
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Private Type Definitions
****************************************************************************/
@ -789,4 +787,3 @@ int gethostentbyname_r(FAR const char *name,
return ERROR;
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -33,8 +33,6 @@
#include "netdb/lib_netdb.h"
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Public Functions
****************************************************************************/
@ -197,4 +195,3 @@ int getnameinfo(FAR const struct sockaddr *addr, socklen_t addrlen,
return OK;
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -26,8 +26,6 @@
#include <netdb.h>
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Public Functions
****************************************************************************/
@ -47,4 +45,3 @@ FAR struct servent *getservbyname(FAR const char *name,
return (ret != OK) ? NULL : res;
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -34,8 +34,6 @@
#include "lib_netdb.h"
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Private Data
****************************************************************************/
@ -116,4 +114,3 @@ int getservbyname_r(FAR const char *name, FAR const char *proto,
return ENOENT;
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -26,8 +26,6 @@
#include <netdb.h>
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Public Functions
****************************************************************************/
@ -46,4 +44,3 @@ FAR struct servent *getservbyport(int port, FAR const char *proto)
return (ret != OK) ? NULL : res;
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -34,8 +34,6 @@
#include "lib_netdb.h"
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Public Functions
****************************************************************************/
@ -100,4 +98,3 @@ int getservbyport_r(int port, FAR const char *proto,
return ENOENT;
}
#endif /* CONFIG_LIBC_NETDB */

View File

@ -28,8 +28,6 @@
#include "netdb/lib_netdb.h"
#ifdef CONFIG_LIBC_NETDB
/****************************************************************************
* Public Data
****************************************************************************/
@ -93,4 +91,3 @@ bool convert_hostent(FAR const struct hostent_s *in,
return j != 0;
}
#endif /* CONFIG_LIBC_NETDB */