aboutsummaryrefslogtreecommitdiff
path: root/nuttx/sched/env_clearenv.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-25 23:21:27 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-25 23:21:27 +0000
commit239e2808cca6ee4c356d087bc83889fc57e64307 (patch)
treefd3a16f87e715df6729c7966a230f93214e98e20 /nuttx/sched/env_clearenv.c
parentfdaa22ed2d565e49983e956bc056f1e0797bd9a9 (diff)
downloadpx4-firmware-239e2808cca6ee4c356d087bc83889fc57e64307.tar.gz
px4-firmware-239e2808cca6ee4c356d087bc83889fc57e64307.tar.bz2
px4-firmware-239e2808cca6ee4c356d087bc83889fc57e64307.zip
Move environment variables in the task group structure
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5565 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/env_clearenv.c')
-rw-r--r--nuttx/sched/env_clearenv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/sched/env_clearenv.c b/nuttx/sched/env_clearenv.c
index 75890f3bc..a9e9f5efd 100644
--- a/nuttx/sched/env_clearenv.c
+++ b/nuttx/sched/env_clearenv.c
@@ -1,7 +1,7 @@
/****************************************************************************
* sched/env_clearenv.c
*
- * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009, 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -74,7 +74,8 @@
int clearenv(void)
{
- return env_release((FAR _TCB*)g_readytorun.head);
+ env_release((FAR _TCB*)g_readytorun.head);
+ return OK;
}
#endif /* CONFIG_DISABLE_ENVIRON */