summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-28 16:07:57 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-28 16:07:57 +0000
commit46dfa1c7ba39ec9a5297d2fdca3f3ddc004b1417 (patch)
treec6fa8cf9920616f2224248e14b1a235065e65beb /cpukit/libcsupport
parent2008-02-27 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-46dfa1c7ba39ec9a5297d2fdca3f3ddc004b1417.tar.bz2
2008-02-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/chroot.c: Formatting.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/src/chroot.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/libcsupport/src/chroot.c b/cpukit/libcsupport/src/chroot.c
index 648b0b872d..d3e1198d0a 100644
--- a/cpukit/libcsupport/src/chroot.c
+++ b/cpukit/libcsupport/src/chroot.c
@@ -2,7 +2,7 @@
* chroot() - Change Root Directory
* Author: fernando.ruiz@ctv.es
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -36,15 +36,16 @@ int chroot(
rtems_libio_set_private_env(); /* try to set a new private env*/
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
rtems_set_errno_and_return_minus_one( ENOTSUP );
- };
+ }
result = chdir(pathname);
if (result) {
rtems_set_errno_and_return_minus_one( errno );
- };
+ }
+
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) {
- /* our cwd has changed, though - but there is no easy way of return :-( */
+ /* our cwd has changed, though - but there is no easy way of return :-( */
rtems_set_errno_and_return_minus_one( errno );
}
rtems_filesystem_freenode(&rtems_filesystem_root);