From 09cd72056a504e1dc547437b3d4a183dddf71937 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Sun, 4 Aug 1996 19:17:15 +0000 Subject: [PATCH] Use err() instead of perror()/exit() and remember to #include and . --- libexec/revnetgroup/revnetgroup.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libexec/revnetgroup/revnetgroup.c b/libexec/revnetgroup/revnetgroup.c index e92f3c063a72..70c0a2c4b09b 100644 --- a/libexec/revnetgroup/revnetgroup.c +++ b/libexec/revnetgroup/revnetgroup.c @@ -35,16 +35,18 @@ * Center for Telecommunications Research * Columbia University, New York City * - * $Id: revnetgroup.c,v 1.1.1.1 1995/10/26 16:25:29 wpaul Exp $ + * $Id: revnetgroup.c,v 1.2 1996/05/12 17:17:45 wpaul Exp $ */ #include #include #include +#include +#include #include "hash.h" #ifndef lint -static const char rcsid[] = "$Id$"; +static const char rcsid[] = "$Id: revnetgroup.c,v 1.2 1996/05/12 17:17:45 wpaul Exp $"; #endif #define LINSIZ 1024 @@ -120,8 +122,7 @@ main(argc, argv) if (strcmp(netgroup, "-")) { if ((fp = fopen(netgroup, "r")) == NULL) { - perror(netgroup); - exit(1); + err(1,netgroup); } } else { fp = stdin;