verr.c revision 178826
118334Speter/* 290082Sobrien * Copyright (c) 1995 - 2001 Kungliga Tekniska H�gskolan 3169699Skan * (Royal Institute of Technology, Stockholm, Sweden). 418334Speter * All rights reserved. 590082Sobrien * 618334Speter * Redistribution and use in source and binary forms, with or without 790082Sobrien * modification, are permitted provided that the following conditions 890082Sobrien * are met: 990082Sobrien * 1090082Sobrien * 1. Redistributions of source code must retain the above copyright 1118334Speter * notice, this list of conditions and the following disclaimer. 1290082Sobrien * 1390082Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1490082Sobrien * notice, this list of conditions and the following disclaimer in the 1590082Sobrien * documentation and/or other materials provided with the distribution. 1618334Speter * 1718334Speter * 3. Neither the name of the Institute nor the names of its contributors 1890082Sobrien * may be used to endorse or promote products derived from this software 19169699Skan * without specific prior written permission. 20169699Skan * 2118334Speter * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 2218334Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2350449Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24132728Skan * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 25132728Skan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26132728Skan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2718334Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2818334Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2950449Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3052299Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3152299Sobrien * SUCH DAMAGE. 3290082Sobrien */ 33132728Skan 3490082Sobrien#ifdef HAVE_CONFIG_H 3590082Sobrien#include <config.h> 3690082SobrienRCSID("$Id: verr.c 14773 2005-04-12 11:29:18Z lha $"); 3790082Sobrien#endif 3890082Sobrien 3990082Sobrien#include "roken.h" 4090082Sobrien#include <err.h> 41117404Skan 42117404Skanvoid ROKEN_LIB_FUNCTION 43117404Skanverr(int eval, const char *fmt, va_list ap) 44132728Skan{ 45169699Skan warnerr(1, fmt, ap); 46169699Skan exit(eval); 47169699Skan} 48169699Skan