diff options
author | 2003-06-01 17:00:26 +0000 | |
---|---|---|
committer | 2003-06-01 17:00:26 +0000 | |
commit | 1ee9984c4f4397b4e37dd231ed72dcab53ea0dff (patch) | |
tree | eac83456bbe224ca5a01b23024644072301555e9 /sys/lib/libsa/exit.c | |
parent | sync (diff) | |
download | wireguard-openbsd-1ee9984c4f4397b4e37dd231ed72dcab53ea0dff.tar.xz wireguard-openbsd-1ee9984c4f4397b4e37dd231ed72dcab53ea0dff.zip |
strcpy/strcat/sprintf removal in all bootblocks. various testing by
various people. outside of some messy things in src/gnu, only one
thing in the main tree now violates this rule: bind
Diffstat (limited to 'sys/lib/libsa/exit.c')
-rw-r--r-- | sys/lib/libsa/exit.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/sys/lib/libsa/exit.c b/sys/lib/libsa/exit.c index d1b22eb9afe..b4503f7860c 100644 --- a/sys/lib/libsa/exit.c +++ b/sys/lib/libsa/exit.c @@ -1,10 +1,10 @@ -/* $OpenBSD: exit.c,v 1.6 2002/03/15 18:19:52 millert Exp $ */ +/* $OpenBSD: exit.c,v 1.7 2003/06/01 17:00:32 deraadt Exp $ */ /* $NetBSD: exit.c,v 1.11 1996/12/01 20:22:19 pk Exp $ */ /*- * Copyright (c) 1993 John Brezak * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -15,7 +15,7 @@ * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR `AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE @@ -36,26 +36,26 @@ __dead void panic(const char *fmt, ...) { - extern void closeall(void); - va_list ap; - static int paniced; - - if (!paniced) { - paniced = 1; - closeall(); - } + extern void closeall(void); + va_list ap; + static int paniced; - va_start(ap, fmt); - vprintf(fmt, ap); - printf("\n"); - va_end(ap); - _rtt(); - /*NOTREACHED*/ + if (!paniced) { + paniced = 1; + closeall(); + } + + va_start(ap, fmt); + vprintf(fmt, ap); + printf("\n"); + va_end(ap); + _rtt(); + /*NOTREACHED*/ } void exit() { - panic("exit"); - /*NOTREACHED*/ + panic("exit"); + /*NOTREACHED*/ } |