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