mirror of
https://github.com/openbsd/src.git
synced 2025-01-04 23:35:36 -08:00
call errx instead of err
This commit is contained in:
parent
ae28f5b3e8
commit
3b665a4519
@ -1,6 +1,11 @@
|
||||
.\" Copyright (c) 1994 Winning Strategies, Inc.
|
||||
.\" $NetBSD: getconf.1,v 1.2 1996/04/20 01:15:12 jtc Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" This code is derived from software contributed to The NetBSD Foundation
|
||||
.\" by J.T. Conklin.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
@ -26,7 +31,7 @@
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $Id: getconf.1,v 1.1.1.1 1995/10/18 08:45:19 deraadt Exp $
|
||||
.\" $Id: getconf.1,v 1.2 1996/05/04 09:15:04 deraadt Exp $
|
||||
.\"
|
||||
.Dd June 24, 1994
|
||||
.Dt GETCONF 1
|
||||
|
@ -1,7 +1,10 @@
|
||||
/*
|
||||
* Copyright (c) 1994 Winning Strategies, Inc.
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by J.T. Conklin.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
@ -36,7 +39,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: getconf.c,v 1.1.1.1 1995/10/18 08:45:19 deraadt Exp $";
|
||||
static char rcsid[] = "$Id: getconf.c,v 1.2 1996/05/04 09:15:06 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
@ -167,7 +170,7 @@ main(argc, argv)
|
||||
break;
|
||||
}
|
||||
if (cp->name == NULL) {
|
||||
err(1, "%s: unknown variable", *argv);
|
||||
errx(1, "%s: unknown variable", *argv);
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user