Home | History | Annotate | Line # | Download | only in lib
ipf_perror.c revision 1.1.1.1.2.2
      1 /*	$NetBSD: ipf_perror.c,v 1.1.1.1.2.2 2012/04/17 00:03:17 yamt 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