summaryrefslogtreecommitdiff
path: root/nuttx/examples
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-26 01:45:42 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-26 01:45:42 +0000
commited56837c5f266ade308f4306ffeb81a0d5eb05e0 (patch)
treea5c8ba6fdd9b72f4824d238e88dae9fac61b704c /nuttx/examples
parente3cd548e74e0b64e83693e5029ff2d3bb981cafc (diff)
downloadpx4-nuttx-ed56837c5f266ade308f4306ffeb81a0d5eb05e0.tar.gz
px4-nuttx-ed56837c5f266ade308f4306ffeb81a0d5eb05e0.tar.bz2
px4-nuttx-ed56837c5f266ade308f4306ffeb81a0d5eb05e0.zip
There is no envp argument in main()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1959 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples')
-rw-r--r--nuttx/examples/nxflat/tests/errno/errno.c2
-rw-r--r--nuttx/examples/nxflat/tests/hello++/hello++1.cpp2
-rw-r--r--nuttx/examples/nxflat/tests/hello++/hello++2.cpp2
-rw-r--r--nuttx/examples/nxflat/tests/hello++/hello++3.cpp2
-rw-r--r--nuttx/examples/nxflat/tests/hello++/hello++4.cpp2
-rw-r--r--nuttx/examples/nxflat/tests/hello/hello.c13
-rw-r--r--nuttx/examples/nxflat/tests/longjmp/longjmp.c2
-rw-r--r--nuttx/examples/nxflat/tests/mutex/mutex.c2
-rw-r--r--nuttx/examples/nxflat/tests/pthread/pthread.c2
-rw-r--r--nuttx/examples/nxflat/tests/signal/signal.c2
-rw-r--r--nuttx/examples/nxflat/tests/struct/struct_main.c2
11 files changed, 11 insertions, 22 deletions
diff --git a/nuttx/examples/nxflat/tests/errno/errno.c b/nuttx/examples/nxflat/tests/errno/errno.c
index 3c54de7be..b06679165 100644
--- a/nuttx/examples/nxflat/tests/errno/errno.c
+++ b/nuttx/examples/nxflat/tests/errno/errno.c
@@ -51,7 +51,7 @@ static const char g_nonexistent[] = "aflav-sautga-ay";
* Public Functions
****************************************************************************/
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
{
FILE *test_stream;
diff --git a/nuttx/examples/nxflat/tests/hello++/hello++1.cpp b/nuttx/examples/nxflat/tests/hello++/hello++1.cpp
index a8881422c..779f3307a 100644
--- a/nuttx/examples/nxflat/tests/hello++/hello++1.cpp
+++ b/nuttx/examples/nxflat/tests/hello++/hello++1.cpp
@@ -53,7 +53,7 @@
// Public Functions
/////////////////////////////////////////////////////////////////////////////
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
{
printf("Hello, World!\n");
return 0;
diff --git a/nuttx/examples/nxflat/tests/hello++/hello++2.cpp b/nuttx/examples/nxflat/tests/hello++/hello++2.cpp
index 3b03bbb0d..87166f3ab 100644
--- a/nuttx/examples/nxflat/tests/hello++/hello++2.cpp
+++ b/nuttx/examples/nxflat/tests/hello++/hello++2.cpp
@@ -90,7 +90,7 @@ public:
// Public Functions
/////////////////////////////////////////////////////////////////////////////
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
{
CThingSayer *MyThingSayer;
diff --git a/nuttx/examples/nxflat/tests/hello++/hello++3.cpp b/nuttx/examples/nxflat/tests/hello++/hello++3.cpp
index 236f5def0..ed7302fa6 100644
--- a/nuttx/examples/nxflat/tests/hello++/hello++3.cpp
+++ b/nuttx/examples/nxflat/tests/hello++/hello++3.cpp
@@ -104,7 +104,7 @@ void CThingSayer::SayThing(void)
// Public Functions
/////////////////////////////////////////////////////////////////////////////
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
{
// We should see the message from constructor, CThingSayer::CThingSayer(),
// BEFORE we see the following messages. That is proof that the
diff --git a/nuttx/examples/nxflat/tests/hello++/hello++4.cpp b/nuttx/examples/nxflat/tests/hello++/hello++4.cpp
index 60c8b2a45..97d026093 100644
--- a/nuttx/examples/nxflat/tests/hello++/hello++4.cpp
+++ b/nuttx/examples/nxflat/tests/hello++/hello++4.cpp
@@ -122,7 +122,7 @@ void CThingSayer::SayThing(void)
// Public Functions
/////////////////////////////////////////////////////////////////////////////
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
{
// We should see the message from constructor, CThingSayer::CThingSayer(),
// BEFORE we see the following messages. That is proof that the
diff --git a/nuttx/examples/nxflat/tests/hello/hello.c b/nuttx/examples/nxflat/tests/hello/hello.c
index d951d1565..028bdfe00 100644
--- a/nuttx/examples/nxflat/tests/hello/hello.c
+++ b/nuttx/examples/nxflat/tests/hello/hello.c
@@ -44,7 +44,7 @@
* Public Functions
****************************************************************************/
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
{
int i;
@@ -73,17 +73,6 @@ int main(int argc, char **argv, char **envp)
}
printf("argv[%d]\t= 0x%p\n", argc, argv[argc]);
-
- /* Print environment variables */
-
- printf("envp\t= 0x%p\n", envp);
-
- for (i = 0; envp[i] != NULL; i++)
- {
- printf("envp[%d]\t= (0x%p) \"%s\"\n", i, envp[i], envp[i]);
- }
- printf("envp[%d]\t= 0x%p\n", i, envp[i]);
-
printf("Goodbye, world!\n");
return 0;
}
diff --git a/nuttx/examples/nxflat/tests/longjmp/longjmp.c b/nuttx/examples/nxflat/tests/longjmp/longjmp.c
index a896fb13c..b5b317d99 100644
--- a/nuttx/examples/nxflat/tests/longjmp/longjmp.c
+++ b/nuttx/examples/nxflat/tests/longjmp/longjmp.c
@@ -98,7 +98,7 @@ static int function(int some_arg)
* Public Functions
****************************************************************************/
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
{
int value;
diff --git a/nuttx/examples/nxflat/tests/mutex/mutex.c b/nuttx/examples/nxflat/tests/mutex/mutex.c
index 1553f0487..f161eb7fa 100644
--- a/nuttx/examples/nxflat/tests/mutex/mutex.c
+++ b/nuttx/examples/nxflat/tests/mutex/mutex.c
@@ -92,7 +92,7 @@ static void thread_func(void *parameter)
* Public Functions
****************************************************************************/
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
{
pthread_t thread1, thread2;
diff --git a/nuttx/examples/nxflat/tests/pthread/pthread.c b/nuttx/examples/nxflat/tests/pthread/pthread.c
index a3977b3fc..1cccfa055 100644
--- a/nuttx/examples/nxflat/tests/pthread/pthread.c
+++ b/nuttx/examples/nxflat/tests/pthread/pthread.c
@@ -94,7 +94,7 @@ static void *child_start_routine(void *arg)
* Public Functions
****************************************************************************/
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
{
pthread_attr_t attr;
pthread_t thread;
diff --git a/nuttx/examples/nxflat/tests/signal/signal.c b/nuttx/examples/nxflat/tests/signal/signal.c
index 52fc206d9..ff845ec10 100644
--- a/nuttx/examples/nxflat/tests/signal/signal.c
+++ b/nuttx/examples/nxflat/tests/signal/signal.c
@@ -133,7 +133,7 @@ static void sigusr2_sighandler(int signo)
* Name: main
****************************************************************************/
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
{
struct sigaction act;
struct sigaction oact;
diff --git a/nuttx/examples/nxflat/tests/struct/struct_main.c b/nuttx/examples/nxflat/tests/struct/struct_main.c
index 61c655829..b86fd50fa 100644
--- a/nuttx/examples/nxflat/tests/struct/struct_main.c
+++ b/nuttx/examples/nxflat/tests/struct/struct_main.c
@@ -57,7 +57,7 @@ int dummy_scalar = DUMMY_SCALAR_VALUE2;
* Public Functions
****************************************************************************/
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
{
const struct struct_s *mystruct = getstruct();