diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-06 09:23:23 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-06 09:23:23 -0600 |
commit | 9544c29043dbb090da9e526825bf1fd9110f656c (patch) | |
tree | 7ae9f04ab851916b192f7be9215b149185f93b2f /apps/system | |
parent | d9653e757df0028d5aa3757b27808d3f512cb456 (diff) | |
download | nuttx-9544c29043dbb090da9e526825bf1fd9110f656c.tar.gz nuttx-9544c29043dbb090da9e526825bf1fd9110f656c.tar.bz2 nuttx-9544c29043dbb090da9e526825bf1fd9110f656c.zip |
Use more standard *argv[] instead easier **argv
Diffstat (limited to 'apps/system')
-rw-r--r-- | apps/system/cdcacm/cdcacm_main.c | 2 | ||||
-rw-r--r-- | apps/system/composite/composite_main.c | 2 | ||||
-rw-r--r-- | apps/system/flash_eraseall/flash_eraseall.c | 2 | ||||
-rw-r--r-- | apps/system/free/free.c | 2 | ||||
-rw-r--r-- | apps/system/hex2bin/hex2bin_main.c | 2 | ||||
-rw-r--r-- | apps/system/hex2bin/hex2mem_main.c | 2 | ||||
-rw-r--r-- | apps/system/i2c/i2c_main.c | 2 | ||||
-rw-r--r-- | apps/system/install/install.c | 2 | ||||
-rw-r--r-- | apps/system/mdio/mdio_main.c | 2 | ||||
-rw-r--r-- | apps/system/nxplayer/nxplayer_main.c | 2 | ||||
-rw-r--r-- | apps/system/poweroff/poweroff.c | 2 | ||||
-rw-r--r-- | apps/system/prun/pexec_main.c | 2 | ||||
-rw-r--r-- | apps/system/ramtest/ramtest.c | 2 | ||||
-rw-r--r-- | apps/system/ramtron/ramtron.c | 2 | ||||
-rw-r--r-- | apps/system/sdcard/sdcard.c | 2 | ||||
-rwxr-xr-x | apps/system/sudoku/sudoku.c | 2 | ||||
-rw-r--r-- | apps/system/sysinfo/sysinfo.c | 2 | ||||
-rw-r--r-- | apps/system/usbmsc/usbmsc_main.c | 2 | ||||
-rw-r--r-- | apps/system/vi/vi.c | 2 | ||||
-rw-r--r-- | apps/system/zmodem/rz_main.c | 2 | ||||
-rw-r--r-- | apps/system/zmodem/sz_main.c | 2 |
21 files changed, 21 insertions, 21 deletions
diff --git a/apps/system/cdcacm/cdcacm_main.c b/apps/system/cdcacm/cdcacm_main.c index ee6b545ac..e8ebebb2d 100644 --- a/apps/system/cdcacm/cdcacm_main.c +++ b/apps/system/cdcacm/cdcacm_main.c @@ -80,7 +80,7 @@ struct cdcacm_state_s g_cdcacm; ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int sercon_main(int argc, char *argv[]) #endif diff --git a/apps/system/composite/composite_main.c b/apps/system/composite/composite_main.c index c4ab61855..05e0a3cea 100644 --- a/apps/system/composite/composite_main.c +++ b/apps/system/composite/composite_main.c @@ -674,7 +674,7 @@ void board_cdcuninitialize(FAR struct usbdevclass_driver_s *classdev) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int conn_main(int argc, char *argv[]) #endif diff --git a/apps/system/flash_eraseall/flash_eraseall.c b/apps/system/flash_eraseall/flash_eraseall.c index 8e744f746..8142c036a 100644 --- a/apps/system/flash_eraseall/flash_eraseall.c +++ b/apps/system/flash_eraseall/flash_eraseall.c @@ -59,7 +59,7 @@ ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int flash_eraseall_main(int argc, char *argv[]) #endif diff --git a/apps/system/free/free.c b/apps/system/free/free.c index efaa8a227..b3606fd08 100644 --- a/apps/system/free/free.c +++ b/apps/system/free/free.c @@ -98,7 +98,7 @@ static void free_getprogmeminfo(struct mallinfo * mem) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int free_main(int argc, char **argv) #endif diff --git a/apps/system/hex2bin/hex2bin_main.c b/apps/system/hex2bin/hex2bin_main.c index b35ecca19..f3acc44cd 100644 --- a/apps/system/hex2bin/hex2bin_main.c +++ b/apps/system/hex2bin/hex2bin_main.c @@ -118,7 +118,7 @@ static void show_usage(FAR const char *progname, int exitcode) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int hex2bin_main(int argc, char **argv) #endif diff --git a/apps/system/hex2bin/hex2mem_main.c b/apps/system/hex2bin/hex2mem_main.c index 39560055a..03feb1ea9 100644 --- a/apps/system/hex2bin/hex2mem_main.c +++ b/apps/system/hex2bin/hex2mem_main.c @@ -113,7 +113,7 @@ static void show_usage(FAR const char *progname, int exitcode) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int hex2mem_main(int argc, char **argv) #endif diff --git a/apps/system/i2c/i2c_main.c b/apps/system/i2c/i2c_main.c index 136ccfc04..2c7f50727 100644 --- a/apps/system/i2c/i2c_main.c +++ b/apps/system/i2c/i2c_main.c @@ -352,7 +352,7 @@ static void i2c_teardown(FAR struct i2ctool_s *i2ctool) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int i2c_main(int argc, char *argv[]) #endif diff --git a/apps/system/install/install.c b/apps/system/install/install.c index 3b2ea4245..f204ff944 100644 --- a/apps/system/install/install.c +++ b/apps/system/install/install.c @@ -331,7 +331,7 @@ static int install_remove(const char *scriptname) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int install_main(int argc, char *argv[]) #endif diff --git a/apps/system/mdio/mdio_main.c b/apps/system/mdio/mdio_main.c index e896cbcd8..07dd8752a 100644 --- a/apps/system/mdio/mdio_main.c +++ b/apps/system/mdio/mdio_main.c @@ -160,7 +160,7 @@ int set_phy_reg(uint16_t phy_id, uint16_t reg_num, uint16_t val) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int mdio_main(int argc, char *argv[]) #endif diff --git a/apps/system/nxplayer/nxplayer_main.c b/apps/system/nxplayer/nxplayer_main.c index 6b2502c29..2f64a932b 100644 --- a/apps/system/nxplayer/nxplayer_main.c +++ b/apps/system/nxplayer/nxplayer_main.c @@ -592,7 +592,7 @@ static int nxplayer_cmd_help(FAR struct nxplayer_s *pPlayer, char* parg) **************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int nxplayer_main(int argc, char *argv[]) #endif diff --git a/apps/system/poweroff/poweroff.c b/apps/system/poweroff/poweroff.c index 3d050bbcb..8769afd54 100644 --- a/apps/system/poweroff/poweroff.c +++ b/apps/system/poweroff/poweroff.c @@ -44,7 +44,7 @@ ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int poweroff_main(int argc, char *argv[]) #endif diff --git a/apps/system/prun/pexec_main.c b/apps/system/prun/pexec_main.c index 74771f0c0..f981af6a1 100644 --- a/apps/system/prun/pexec_main.c +++ b/apps/system/prun/pexec_main.c @@ -82,7 +82,7 @@ static void show_usage(FAR const char *progname, int errcode) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int pexec_main(int argc, FAR char **argv) #endif diff --git a/apps/system/ramtest/ramtest.c b/apps/system/ramtest/ramtest.c index 02ba1151e..34cbf9168 100644 --- a/apps/system/ramtest/ramtest.c +++ b/apps/system/ramtest/ramtest.c @@ -557,7 +557,7 @@ static void addr_in_addr(FAR struct ramtest_s *info) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int ramtest_main(int argc, char **argv) #endif diff --git a/apps/system/ramtron/ramtron.c b/apps/system/ramtron/ramtron.c index 52cfd7d6d..a047fa87a 100644 --- a/apps/system/ramtron/ramtron.c +++ b/apps/system/ramtron/ramtron.c @@ -84,7 +84,7 @@ int ramtron_start(int spino) #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int ramtron_main(int argc, char *argv[]) #endif diff --git a/apps/system/sdcard/sdcard.c b/apps/system/sdcard/sdcard.c index 708ca4676..1235d7f24 100644 --- a/apps/system/sdcard/sdcard.c +++ b/apps/system/sdcard/sdcard.c @@ -105,7 +105,7 @@ static int sdcard_start(int slotno) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int sdcard_main(int argc, char *argv[]) #endif diff --git a/apps/system/sudoku/sudoku.c b/apps/system/sudoku/sudoku.c index 69a9b7a60..7c04d7557 100755 --- a/apps/system/sudoku/sudoku.c +++ b/apps/system/sudoku/sudoku.c @@ -501,7 +501,7 @@ static inline void count_cells(void) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int sudoku_main(int argc, char **argv, char **envp) #endif diff --git a/apps/system/sysinfo/sysinfo.c b/apps/system/sysinfo/sysinfo.c index 734c94233..7301950c8 100644 --- a/apps/system/sysinfo/sysinfo.c +++ b/apps/system/sysinfo/sysinfo.c @@ -56,7 +56,7 @@ ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int sysinfo_main(int argc, char *argv[]) #endif diff --git a/apps/system/usbmsc/usbmsc_main.c b/apps/system/usbmsc/usbmsc_main.c index 1e5a314ae..b2f6aa66d 100644 --- a/apps/system/usbmsc/usbmsc_main.c +++ b/apps/system/usbmsc/usbmsc_main.c @@ -390,7 +390,7 @@ static int usbmsc_enumerate(struct usbtrace_s *trace, void *arg) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int msconn_main(int argc, char *argv[]) #endif diff --git a/apps/system/vi/vi.c b/apps/system/vi/vi.c index b1e7fecdb..ebc19f5bb 100644 --- a/apps/system/vi/vi.c +++ b/apps/system/vi/vi.c @@ -3570,7 +3570,7 @@ static void vi_showusage(FAR struct vi_s *vi, FAR const char *progname, ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int vi_main(int argc, char **argv) #endif diff --git a/apps/system/zmodem/rz_main.c b/apps/system/zmodem/rz_main.c index cd1f57ed8..99866a96b 100644 --- a/apps/system/zmodem/rz_main.c +++ b/apps/system/zmodem/rz_main.c @@ -71,7 +71,7 @@ static void show_usage(FAR const char *progname, int errcode) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int rz_main(int argc, FAR char **argv) #endif diff --git a/apps/system/zmodem/sz_main.c b/apps/system/zmodem/sz_main.c index 863ad8588..d531df582 100644 --- a/apps/system/zmodem/sz_main.c +++ b/apps/system/zmodem/sz_main.c @@ -90,7 +90,7 @@ static void show_usage(FAR const char *progname, int errcode) ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL -int main(int argc, FAR char **argv) +int main(int argc, FAR char *argv[]) #else int sz_main(int argc, FAR char **argv) #endif |