summaryrefslogtreecommitdiffstats
path: root/libexec/atrun/gloadavg.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-11-20 07:21:55 +0000
committercharnier <charnier@FreeBSD.org>1997-11-20 07:21:55 +0000
commit5cce247300f752cee5acab1f5f0f78fffb8c3e8a (patch)
tree604cd81475795c2b5aa9e77667d1566ce0a89ecf /libexec/atrun/gloadavg.c
parente87fe4179c582e19ecb97c70a60a92b346ad472c (diff)
downloadFreeBSD-src-5cce247300f752cee5acab1f5f0f78fffb8c3e8a.zip
FreeBSD-src-5cce247300f752cee5acab1f5f0f78fffb8c3e8a.tar.gz
Cosmetic in error strings. Sort Xrefs. Add usage (with syslog capability).
Diffstat (limited to 'libexec/atrun/gloadavg.c')
-rw-r--r--libexec/atrun/gloadavg.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/libexec/atrun/gloadavg.c b/libexec/atrun/gloadavg.c
index 289fa29..40e8713 100644
--- a/libexec/atrun/gloadavg.c
+++ b/libexec/atrun/gloadavg.c
@@ -23,6 +23,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef lint
+static const char rcsid[] =
+ "$Id$";
+#endif /* not lint */
+
#ifndef __FreeBSD__
#define _POSIX_SOURCE 1
@@ -37,12 +42,10 @@
#include "gloadavg.h"
-/* File scope variables */
-
-static char rcsid[] = "$Id$";
-
/* Global functions */
+void perr(const char *a);
+
double
gloadavg(void)
/* return the current load average as a floating point number, or <0 for
@@ -63,7 +66,7 @@ gloadavg(void)
}
#else
if (getloadavg(&result, 1) != 1)
- perr("Error in getloadavg");
+ perr("error in getloadavg");
#endif
return result;
}
OpenPOWER on IntegriCloud