mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 08:52:01 +08:00
netutils: nxstyle fixes
fixes for errors reported by nxstyle tool Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:

committed by
Xiang Xiao

parent
adc3c9fae9
commit
5572819bb1
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* netutils/netlib/netlib_getipv4netmask.c
|
||||
* apps/netutils/netlib/netlib_getipv4netmask.c
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
@@ -76,7 +76,7 @@ int netlib_get_ipv4netmask(FAR const char *ifname, FAR struct in_addr *addr)
|
||||
{
|
||||
FAR struct sockaddr_in *req_addr;
|
||||
|
||||
req_addr = (FAR struct sockaddr_in*)&req.ifr_addr;
|
||||
req_addr = (FAR struct sockaddr_in *)&req.ifr_addr;
|
||||
memcpy(addr, &req_addr->sin_addr, sizeof(struct in_addr));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user