Home | History | Annotate | Line # | Download | only in lib
ipf_perror.c revision 1.1.1.1
      1 /*	$NetBSD: ipf_perror.c,v 1.1.1.1 2012/03/23 21:20:08 christos Exp $	*/
      2 
      3 #include "ipf.h"
      4 
      5 void
      6 ipf_perror(err, string)
      7 	int err;
      8 	char *string;
      9 {
     10 	if (err == 0)
     11 		fprintf(stderr, "%s\n", string);
     12 	else
     13 		fprintf(stderr, "%s %s\n", string, ipf_strerror(err));
     14 }
     15