diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-06 01:15:44 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-06 01:15:44 +0000 |
commit | e23cc55a615be90bf850b19e4805537ac72f31b4 (patch) | |
tree | 13dd89e79bb5d4e44218f6a5e2e9d1464d7e0fd7 | |
parent | 2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-e23cc55a615be90bf850b19e4805537ac72f31b4.tar.bz2 |
2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/getrusage.c: Formatting.
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/getrusage.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 413e8a0d4b..1b05137e12 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,9 @@ 2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com> + * libcsupport/src/getrusage.c: Formatting. + +2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com> + * libcsupport/src/getlogin.c: Formatting. Add EFAULT. * libcsupport/src/termios.c: Formatting. diff --git a/cpukit/libcsupport/src/getrusage.c b/cpukit/libcsupport/src/getrusage.c index 3e57139e99..df68376e50 100644 --- a/cpukit/libcsupport/src/getrusage.c +++ b/cpukit/libcsupport/src/getrusage.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2008. + * COPYRIGHT (c) 1989-2010. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -43,9 +43,12 @@ int getrusage(int who, struct rusage *usage) usage->ru_stime = rtime; return 0; - } else if (who == RUSAGE_CHILDREN) { + } + + if (who == RUSAGE_CHILDREN) { rtems_set_errno_and_return_minus_one( ENOSYS ); } + rtems_set_errno_and_return_minus_one( EINVAL ); } |