mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
Correct and standardize some naming used in the previous commits.
This commit is contained in:
@@ -99,7 +99,7 @@ int netlib_ifup(const char *ifname)
|
||||
{
|
||||
/* Get a socket (only so that we get access to the INET subsystem) */
|
||||
|
||||
int sockfd = socket(AF_FAMILY, NETLIB_SOCK_IOCTL, 0);
|
||||
int sockfd = socket(AF_FAMILY, NETLIB_SOCK_TYPE, 0);
|
||||
if (sockfd >= 0)
|
||||
{
|
||||
struct ifreq req;
|
||||
@@ -142,7 +142,7 @@ int netlib_ifdown(const char *ifname)
|
||||
{
|
||||
/* Get a socket (only so that we get access to the INET subsystem) */
|
||||
|
||||
int sockfd = socket(AF_FAMILY, NETLIB_SOCK_IOCTL, 0);
|
||||
int sockfd = socket(AF_FAMILY, NETLIB_SOCK_TYPE, 0);
|
||||
if (sockfd >= 0)
|
||||
{
|
||||
struct ifreq req;
|
||||
|
Reference in New Issue
Block a user