summaryrefslogtreecommitdiffstats
path: root/usr.bin/renice/renice.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-04-14 06:39:19 +0000
committerimp <imp@FreeBSD.org>2000-04-14 06:39:19 +0000
commit4721d7ef435f4d79e92d8d98ba9b645bb25993fb (patch)
treec7963b41252b2e47e3e9896854edbbb0300e6576 /usr.bin/renice/renice.c
parent7fec3d2787608459e561d33aa2c5f4370c7eb11f (diff)
downloadFreeBSD-src-4721d7ef435f4d79e92d8d98ba9b645bb25993fb.zip
FreeBSD-src-4721d7ef435f4d79e92d8d98ba9b645bb25993fb.tar.gz
#include <errno.h> where needed. Kill extern int errno;.
Minor warnings in tip corrected.
Diffstat (limited to 'usr.bin/renice/renice.c')
-rw-r--r--usr.bin/renice/renice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/renice/renice.c b/usr.bin/renice/renice.c
index baed30a..b20f732 100644
--- a/usr.bin/renice/renice.c
+++ b/usr.bin/renice/renice.c
@@ -50,6 +50,7 @@ static const char rcsid[] =
#include <sys/resource.h>
#include <err.h>
+#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <pwd.h>
@@ -124,7 +125,6 @@ donice(which, who, prio)
int which, who, prio;
{
int oldprio;
- extern int errno;
errno = 0, oldprio = getpriority(which, who);
if (oldprio == -1 && errno) {
OpenPOWER on IntegriCloud