summaryrefslogtreecommitdiffstats
path: root/contrib/top/commands.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2002-01-24 17:52:26 +0000
committerdwmalone <dwmalone@FreeBSD.org>2002-01-24 17:52:26 +0000
commit9785b3935a6c16c94fcffede103f164d79f360e3 (patch)
tree97f032d558ad639ce405b9d3226b5a5efb4ff330 /contrib/top/commands.c
parent74d98194bc087575962b2cd84e6bacbefbf5968e (diff)
downloadFreeBSD-src-9785b3935a6c16c94fcffede103f164d79f360e3.zip
FreeBSD-src-9785b3935a6c16c94fcffede103f164d79f360e3.tar.gz
Resolve conflict: We made a fix renaming a structure member error,
but it was renamed errnum on the vendor branch.
Diffstat (limited to 'contrib/top/commands.c')
-rw-r--r--contrib/top/commands.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/contrib/top/commands.c b/contrib/top/commands.c
index b18db72..6af378bc 100644
--- a/contrib/top/commands.c
+++ b/contrib/top/commands.c
@@ -7,6 +7,8 @@
*
* Copyright (c) 1984, 1989, William LeFebvre, Rice University
* Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
+ *
+ * $FreeBSD$
*/
/*
@@ -154,7 +156,7 @@ int *intp;
struct errs /* structure for a system-call error */
{
- int error; /* value of errno (that is, the actual error) */
+ int errnum; /* value of errno (that is, the actual error) */
char *arg; /* argument that caused the error */
};
@@ -173,7 +175,7 @@ static char *err_listem =
else \
{ \
errs[errcnt].arg = (p); \
- errs[errcnt++].error = (e); \
+ errs[errcnt++].errnum = (e); \
}
/*
@@ -213,7 +215,7 @@ char *err_string()
while (cnt < errcnt)
{
errp = &(errs[cnt++]);
- if (errp->error != currerr)
+ if (errp->errnum != currerr)
{
if (currerr != -1)
{
@@ -223,7 +225,7 @@ char *err_string()
}
(void) strcat(string, "; "); /* we know there's more */
}
- currerr = errp->error;
+ currerr = errp->errnum;
first = Yes;
}
if ((stringlen = str_addarg(string, stringlen, errp->arg, first)) ==0)
@@ -311,7 +313,7 @@ register struct errs *p1, *p2;
{
register int result;
- if ((result = p1->error - p2->error) == 0)
+ if ((result = p1->errnum - p2->errnum) == 0)
{
return(strcmp(p1->arg, p2->arg));
}
@@ -342,7 +344,7 @@ show_errors()
while (cnt++ < errcnt)
{
printf("%5s: %s\n", errp->arg,
- errp->error == 0 ? "Not a number" : errmsg(errp->error));
+ errp->errnum == 0 ? "Not a number" : errmsg(errp->errnum));
errp++;
}
}
OpenPOWER on IntegriCloud