summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-06 17:48:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-06 17:48:56 +0000
commitdcea5f0360725d2c25b61eefe9db7b2474b26dd6 (patch)
treeb0aee7184c85c0e94f64d214af29a567e831961e /apps
parent4011b03fa6a6a7889efea3451a3a125faa72c7fc (diff)
downloadnuttx-dcea5f0360725d2c25b61eefe9db7b2474b26dd6.tar.gz
nuttx-dcea5f0360725d2c25b61eefe9db7b2474b26dd6.tar.bz2
nuttx-dcea5f0360725d2c25b61eefe9db7b2474b26dd6.zip
Remove user_initialize(); Make sure all integer types are signed that need to be
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3474 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps')
-rw-r--r--apps/examples/dhcpd/target.c13
-rw-r--r--apps/examples/hello/main.c15
-rwxr-xr-xapps/examples/helloxx/main.cxx14
-rw-r--r--apps/examples/hidkbd/hidkbd_main.c8
-rwxr-xr-xapps/examples/igmp/igmp.c13
-rw-r--r--apps/examples/mm/mm_main.c8
-rw-r--r--apps/examples/mount/mount_main.c12
-rw-r--r--apps/examples/nettest/nettest.c13
-rw-r--r--apps/examples/nsh/nsh_main.c16
-rw-r--r--apps/examples/null/null_main.c10
-rw-r--r--apps/examples/nx/nx_main.c10
-rw-r--r--apps/examples/nxflat/nxflat_main.c10
-rw-r--r--apps/examples/ostest/main.c11
-rw-r--r--apps/examples/pashello/pashello.c12
-rw-r--r--apps/examples/pipe/pipe_main.c10
-rw-r--r--apps/examples/poll/poll_main.c8
-rw-r--r--apps/examples/romfs/romfs_main.c10
-rw-r--r--apps/examples/sendmail/target.c12
-rw-r--r--apps/examples/serloop/main.c15
-rw-r--r--apps/examples/thttpd/main.c13
-rw-r--r--apps/examples/udp/target.c13
-rw-r--r--apps/examples/uip/main.c13
-rw-r--r--apps/examples/usbserial/main.c15
-rw-r--r--apps/examples/usbstorage/usbstrg_main.c15
-rw-r--r--apps/examples/wget/target.c12
-rwxr-xr-xapps/examples/wlan/wlan_main.c8
26 files changed, 14 insertions, 295 deletions
diff --git a/apps/examples/dhcpd/target.c b/apps/examples/dhcpd/target.c
index 1878c2bc8..d394da02e 100644
--- a/apps/examples/dhcpd/target.c
+++ b/apps/examples/dhcpd/target.c
@@ -86,19 +86,6 @@
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does not support weak
- * functions.
- */
-}
-#endif
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/hello/main.c b/apps/examples/hello/main.c
index 44c8384eb..308603f33 100644
--- a/apps/examples/hello/main.c
+++ b/apps/examples/hello/main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/hello/main.c
*
- * Copyright (C) 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -53,19 +53,6 @@
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does not support weak
- * functions.
- */
-}
-#endif
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/helloxx/main.cxx b/apps/examples/helloxx/main.cxx
index df84375a2..9470edf14 100755
--- a/apps/examples/helloxx/main.cxx
+++ b/apps/examples/helloxx/main.cxx
@@ -1,7 +1,7 @@
//***************************************************************************
// examples/helloxx/main.c
//
-// Copyright (C) 2009 Gregory Nutt. All rights reserved.
+// Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <spudmonkey@racsa.co.cr>
//
// Redistribution and use in source and binary forms, with or without
@@ -87,18 +87,6 @@ static CHelloWorld g_HelloWorld;
//***************************************************************************
//***************************************************************************
-// user_initialize
-//***************************************************************************
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- // Stub that must be provided only if the toolchain does not support weak
- // functions.
-}
-#endif
-
-//***************************************************************************
// user_start
//***************************************************************************
diff --git a/apps/examples/hidkbd/hidkbd_main.c b/apps/examples/hidkbd/hidkbd_main.c
index 0a082f67c..96864b9f9 100644
--- a/apps/examples/hidkbd/hidkbd_main.c
+++ b/apps/examples/hidkbd/hidkbd_main.c
@@ -141,14 +141,6 @@ static int hidkbd_waiter(int argc, char *argv[])
}
/****************************************************************************
- * Name: user_initialize
- ****************************************************************************/
-
-void user_initialize(void)
-{
-}
-
-/****************************************************************************
* Name: user_start
****************************************************************************/
diff --git a/apps/examples/igmp/igmp.c b/apps/examples/igmp/igmp.c
index 734a7e599..7f2a8099c 100755
--- a/apps/examples/igmp/igmp.c
+++ b/apps/examples/igmp/igmp.c
@@ -78,19 +78,6 @@
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does
- * not support weak functions.
- */
-}
-#endif
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/mm/mm_main.c b/apps/examples/mm/mm_main.c
index 0e23e0cfb..036c39047 100644
--- a/apps/examples/mm/mm_main.c
+++ b/apps/examples/mm/mm_main.c
@@ -267,14 +267,6 @@ static void do_frees(void **mem, const int *size, const int *seq, int n)
****************************************************************************/
/****************************************************************************
- * Name: user_initialize
- ****************************************************************************/
-
-void user_initialize(void)
-{
-}
-
-/****************************************************************************
* Name: user_start
****************************************************************************/
diff --git a/apps/examples/mount/mount_main.c b/apps/examples/mount/mount_main.c
index 05bda8150..00070b94c 100644
--- a/apps/examples/mount/mount_main.c
+++ b/apps/examples/mount/mount_main.c
@@ -1,7 +1,7 @@
/****************************************************************************
- * mount_main.c
+ * examples/mount/mount_main.c
*
- * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -567,14 +567,6 @@ static void succeed_stat(const char *path)
****************************************************************************/
/****************************************************************************
- * Name: user_initialize
- ****************************************************************************/
-
-void user_initialize(void)
-{
-}
-
-/****************************************************************************
* Name: user_start
****************************************************************************/
diff --git a/apps/examples/nettest/nettest.c b/apps/examples/nettest/nettest.c
index c7492fff6..a6b3cda14 100644
--- a/apps/examples/nettest/nettest.c
+++ b/apps/examples/nettest/nettest.c
@@ -62,19 +62,6 @@
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does
- * not support weak functions.
- */
-}
-#endif
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/nsh/nsh_main.c b/apps/examples/nsh/nsh_main.c
index 1bd09e8a3..53235a835 100644
--- a/apps/examples/nsh/nsh_main.c
+++ b/apps/examples/nsh/nsh_main.c
@@ -76,22 +76,6 @@
****************************************************************************/
/****************************************************************************
- * Name: user_initialize
- ****************************************************************************/
-
-/* In order to support user_initialize if CONFIG_PAGING is defined, this
- * function (and only this function) would need to get moved to the locked
- * text region.
- */
-
-#ifndef CONFIG_PAGING
-void user_initialize(void)
-{
- /* stub */
-}
-#endif
-
-/****************************************************************************
* Name: user_start
****************************************************************************/
diff --git a/apps/examples/null/null_main.c b/apps/examples/null/null_main.c
index fa0a1473d..10fc1bf1e 100644
--- a/apps/examples/null/null_main.c
+++ b/apps/examples/null/null_main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/null/null_main.c
*
- * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -58,14 +58,6 @@
****************************************************************************/
/****************************************************************************
- * Name: user_initialize
- ****************************************************************************/
-
-void user_initialize(void)
-{
-}
-
-/****************************************************************************
* Name: user_start
****************************************************************************/
diff --git a/apps/examples/nx/nx_main.c b/apps/examples/nx/nx_main.c
index d35ea4ff0..48f4a11d5 100644
--- a/apps/examples/nx/nx_main.c
+++ b/apps/examples/nx/nx_main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/nx/nx_main.c
*
- * Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -610,14 +610,6 @@ static int nxeg_initialize(void)
****************************************************************************/
/****************************************************************************
- * Name: user_initialize
- ****************************************************************************/
-
-void user_initialize(void)
-{
-}
-
-/****************************************************************************
* Name: user_start
****************************************************************************/
diff --git a/apps/examples/nxflat/nxflat_main.c b/apps/examples/nxflat/nxflat_main.c
index a710112c3..12d88c3d5 100644
--- a/apps/examples/nxflat/nxflat_main.c
+++ b/apps/examples/nxflat/nxflat_main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/nxflat/nxflat_main.c
*
- * Copyright (C) 2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -145,14 +145,6 @@ static inline void testheader(FAR const char *progname)
****************************************************************************/
/****************************************************************************
- * Name: user_initialize
- ****************************************************************************/
-
-void user_initialize(void)
-{
-}
-
-/****************************************************************************
* Name: user_start
****************************************************************************/
diff --git a/apps/examples/ostest/main.c b/apps/examples/ostest/main.c
index 53be10764..327ec60e1 100644
--- a/apps/examples/ostest/main.c
+++ b/apps/examples/ostest/main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/ostest/main.c
*
- * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -450,15 +450,6 @@ static void stdio_test(void)
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-void user_initialize(void)
-{
- /* stub */
-}
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/pashello/pashello.c b/apps/examples/pashello/pashello.c
index 8bdefe702..9ebe68a27 100644
--- a/apps/examples/pashello/pashello.c
+++ b/apps/examples/pashello/pashello.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/pashello/pashello.c
*
- * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -99,16 +99,6 @@ static void prun(FAR struct pexec_s *st)
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
-}
-#endif
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/pipe/pipe_main.c b/apps/examples/pipe/pipe_main.c
index 97e728eb7..1f0f73032 100644
--- a/apps/examples/pipe/pipe_main.c
+++ b/apps/examples/pipe/pipe_main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/pipe/pipe_main.c
*
- * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -69,14 +69,6 @@
****************************************************************************/
/****************************************************************************
- * Name: user_initialize
- ****************************************************************************/
-
-void user_initialize(void)
-{
-}
-
-/****************************************************************************
* Name: user_start
****************************************************************************/
diff --git a/apps/examples/poll/poll_main.c b/apps/examples/poll/poll_main.c
index d66e7f269..3db0150e7 100644
--- a/apps/examples/poll/poll_main.c
+++ b/apps/examples/poll/poll_main.c
@@ -74,14 +74,6 @@
****************************************************************************/
/****************************************************************************
- * Name: user_initialize
- ****************************************************************************/
-
-void user_initialize(void)
-{
-}
-
-/****************************************************************************
* Name: user_start
****************************************************************************/
diff --git a/apps/examples/romfs/romfs_main.c b/apps/examples/romfs/romfs_main.c
index 2e231a31c..32b3d2654 100644
--- a/apps/examples/romfs/romfs_main.c
+++ b/apps/examples/romfs/romfs_main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/romfs/romfs_main.c
*
- * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -452,14 +452,6 @@ static void checkdirectories(struct node_s *entry)
****************************************************************************/
/****************************************************************************
- * Name: user_initialize
- ****************************************************************************/
-
-void user_initialize(void)
-{
-}
-
-/****************************************************************************
* Name: user_start
****************************************************************************/
diff --git a/apps/examples/sendmail/target.c b/apps/examples/sendmail/target.c
index d8643106b..ab4da14b1 100644
--- a/apps/examples/sendmail/target.c
+++ b/apps/examples/sendmail/target.c
@@ -97,18 +97,6 @@ static const char g_msg_body[] = CONFIG_EXAMPLE_SENDMAIL_BODY "\r\n";
/****************************************************************************
* Public Functions
****************************************************************************/
-/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does not support weak
- * functions.
- */
-}
-#endif
/****************************************************************************
* user_start
diff --git a/apps/examples/serloop/main.c b/apps/examples/serloop/main.c
index a9bdbe7ea..3c635fe88 100644
--- a/apps/examples/serloop/main.c
+++ b/apps/examples/serloop/main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/serloop/main.c
*
- * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -56,19 +56,6 @@
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does not support weak
- * functions.
- */
-}
-#endif
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/thttpd/main.c b/apps/examples/thttpd/main.c
index e2fdda4f4..be30876cb 100644
--- a/apps/examples/thttpd/main.c
+++ b/apps/examples/thttpd/main.c
@@ -166,19 +166,6 @@ int g_thttpdnsymbols;
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does not support weak
- * functions.
- */
-}
-#endif
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/udp/target.c b/apps/examples/udp/target.c
index 5e31fdb36..07fec0e75 100644
--- a/apps/examples/udp/target.c
+++ b/apps/examples/udp/target.c
@@ -59,19 +59,6 @@
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does
- * not support weak functions.
- */
-}
-#endif
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/uip/main.c b/apps/examples/uip/main.c
index 21a01998b..fd2da4b8e 100644
--- a/apps/examples/uip/main.c
+++ b/apps/examples/uip/main.c
@@ -105,19 +105,6 @@
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does
- * not support weak functions.
- */
-}
-#endif
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/usbserial/main.c b/apps/examples/usbserial/main.c
index 17aef1c79..d84c063e1 100644
--- a/apps/examples/usbserial/main.c
+++ b/apps/examples/usbserial/main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/usbserial/main.c
*
- * Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008, 2010-2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -188,19 +188,6 @@ static void dumptrace(void)
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does not support weak
- * functions.
- */
-}
-#endif
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/usbstorage/usbstrg_main.c b/apps/examples/usbstorage/usbstrg_main.c
index 47d79fbb4..3f0cf57e5 100644
--- a/apps/examples/usbstorage/usbstrg_main.c
+++ b/apps/examples/usbstorage/usbstrg_main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/usbstorage/usbstrg_main.c
*
- * Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -284,19 +284,6 @@ static int usbstrg_enumerate(struct usbtrace_s *trace, void *arg)
****************************************************************************/
/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does not support weak
- * functions.
- */
-}
-#endif
-
-/****************************************************************************
* user_start
****************************************************************************/
diff --git a/apps/examples/wget/target.c b/apps/examples/wget/target.c
index b378e9944..9c55746b3 100644
--- a/apps/examples/wget/target.c
+++ b/apps/examples/wget/target.c
@@ -104,18 +104,6 @@ static void callback(FAR char **buffer, int offset, int datend,
/****************************************************************************
* Public Functions
****************************************************************************/
-/****************************************************************************
- * user_initialize
- ****************************************************************************/
-
-#ifndef CONFIG_HAVE_WEAKFUNCTIONS
-void user_initialize(void)
-{
- /* Stub that must be provided only if the toolchain does not support weak
- * functions.
- */
-}
-#endif
/****************************************************************************
* user_start
diff --git a/apps/examples/wlan/wlan_main.c b/apps/examples/wlan/wlan_main.c
index fd1bd9322..652d8269c 100755
--- a/apps/examples/wlan/wlan_main.c
+++ b/apps/examples/wlan/wlan_main.c
@@ -142,14 +142,6 @@ static int wlan_waiter(int argc, char *argv[])
}
/****************************************************************************
- * Name: user_initialize
- ****************************************************************************/
-
-void user_initialize(void)
-{
-}
-
-/****************************************************************************
* Name: user_start
****************************************************************************/