1 /* $NetBSD: warranty.c,v 1.1 2017/04/10 02:28:23 phil Exp $ */ 2 3 /* 4 * Copyright (C) 1991, 1992, 1993, 1994, 1997 Free Software Foundation, Inc. 5 * Copyright (C) 2004, 2017 Philip A. Nelson. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 2. Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in the 15 * documentation and/or other materials provided with the distribution. 16 * 3. Neither the name of Philip A. Nelson nor the name of the Free Software 17 * Foundation may not be used to endorse or promote products derived from 18 * this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY PHILIP A. NELSON ``AS IS'' AND ANY EXPRESS OR 21 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23 * IN NO EVENT SHALL PHILIP A. NELSON OR THE FREE SOFTWARE FOUNDATION BE 24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33 /* Warranty information ... */ 34 35 #include "bcdefs.h" 36 #include "proto.h" 37 38 /* Print the welcome banner. */ 39 40 void 41 welcome(void) 42 { 43 /* No welcome in NetBSD! */ 44 } 45 46 /* Print out the version information. */ 47 48 void 49 show_bc_version(void) 50 { 51 printf("%s %s\n%s\n", PACKAGE, VERSION, BC_COPYRIGHT); 52 } 53 54 /* Print out the warranty information. */ 55 56 void 57 warranty(const char *prefix) 58 { 59 printf ("\n%s", prefix); 60 show_bc_version (); 61 printf ("\n There is no warranty! See the NetBSD source code.\n"); 62 } 63