nshlib/nsh_netcmds.c: fix nxstyle warning
/****************************************************************************
* apps/nshlib/nsh_netcmds.c
*
- * Copyright (C) 2007-2012, 2014-2015, 2017 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2012, 2014-2015, 2017 Gregory Nutt.
+ * All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -204,7 +205,8 @@ static int ifconfig_callback(FAR struct nsh_vtbl_s *vtbl, FAR char *devname)
/* Construct the full path to the /proc/net entry for this device */
- snprintf(buffer, IFNAMSIZ + 12, CONFIG_NSH_PROC_MOUNTPOINT "/net/%s", devname);
+ snprintf(buffer, IFNAMSIZ + 12,
+ CONFIG_NSH_PROC_MOUNTPOINT "/net/%s", devname);
nsh_catfile(vtbl, "ifconfig", buffer);
return OK;
@@ -243,7 +245,7 @@ int tftpc_parseargs(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv,
break;
case 'h':
- if (!netlib_ipv4addrconv(optarg, (FAR unsigned char*)&args->ipaddr))
+ if (!netlib_ipv4addrconv(optarg, (FAR uint8_t *)&args->ipaddr))
{
nsh_error(vtbl, g_fmtarginvalid, argv[0]);
badarg = true;
@@ -419,7 +421,8 @@ static int nsh_foreach_netdev(nsh_netdev_callback_t callback,
****************************************************************************/
#ifdef HAVE_HWADDR
-static inline bool nsh_addrconv(FAR const char *hwstr, FAR mac_addr_t *macaddr)
+static inline bool nsh_addrconv(FAR const char *hwstr,
+ FAR mac_addr_t *macaddr)
{
/* REVISIT: How will we handle Ethernet and SLIP networks together? */
@@ -440,7 +443,8 @@ static inline bool nsh_addrconv(FAR const char *hwstr, FAR mac_addr_t *macaddr)
****************************************************************************/
#ifdef HAVE_HWADDR
-static inline void nsh_sethwaddr(FAR const char *ifname, FAR mac_addr_t *macaddr)
+static inline void nsh_sethwaddr(FAR const char *ifname,
+ FAR mac_addr_t *macaddr)
{
#if defined(CONFIG_NET_ETHERNET)
netlib_setmacaddr(ifname, *macaddr);
@@ -539,7 +543,8 @@ int cmd_ifdown(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
ifname = argv[1];
ret = netlib_ifdown(ifname);
- nsh_output(vtbl, "ifdown %s...%s\n", ifname, (ret == OK) ? "OK" : "Failed");
+ nsh_output(vtbl, "ifdown %s...%s\n",
+ ifname, (ret == OK) ? "OK" : "Failed");
return ret;
}
#endif
@@ -722,7 +727,6 @@ int cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
#ifdef HAVE_HWADDR
/* Set Hardware Ethernet MAC address */
- /* REVISIT: How will we handle Ethernet and SLIP networks together? */
if (hw != NULL)
{
