From 9b58188bdcae2ff6d9a349acc571dc94afa0ec9f Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 9 May 2002 00:41:18 +0000 Subject: [PATCH] sys_nerr should come from standard headers -- not from a coder's guess of what is right. --- contrib/amd/amq/amq.c | 5 +++-- contrib/amd/hlfsd/hlfsd.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/amd/amq/amq.c b/contrib/amd/amq/amq.c index 50482b423163..e49cabcf139a 100644 --- a/contrib/amd/amq/amq.c +++ b/contrib/amd/amq/amq.c @@ -39,10 +39,12 @@ * %W% (Berkeley) %G% * * $Id: amq.c,v 1.7.2.5 2001/01/12 22:43:43 ro Exp $ - * $FreeBSD$ * */ +#include +__FBSDID("$FreeBSD$"); + /* * Automounter query tool */ @@ -252,7 +254,6 @@ show_mi(amq_mount_info_list *ml, enum show_opt e, int *mwid, int *dwid, int *twi mi->mi_up > 0 ? "up" : mi->mi_up < 0 ? "starting" : "down"); if (mi->mi_error > 0) { - extern int sys_nerr; if (mi->mi_error < sys_nerr) #ifdef HAVE_STRERROR printf(" (%s)", strerror(mi->mi_error)); diff --git a/contrib/amd/hlfsd/hlfsd.h b/contrib/amd/hlfsd/hlfsd.h index c0e9fa9afa73..54e7541248ff 100644 --- a/contrib/amd/hlfsd/hlfsd.h +++ b/contrib/amd/hlfsd/hlfsd.h @@ -39,6 +39,7 @@ * %W% (Berkeley) %G% * * $Id: hlfsd.h,v 1.4.2.2 2001/01/12 22:47:21 ro Exp $ + * $FreeBSD$ * * HLFSD was written at Columbia University Computer Science Department, by * Erez Zadok and Alexander Dupuy @@ -147,7 +148,6 @@ extern gid_t hlfs_gid; extern int cache_interval; extern int noverify; extern int serverpid; -extern int sys_nerr; extern int untab_index(char *username); extern am_nfs_fh *root_fhp; extern am_nfs_fh root;