xref: /netbsd-src/external/bsd/ipf/dist/lib/printifname.c (revision 13885a665959c62f13a82b3caedf986eaa17aa31)
1 /*	$NetBSD: printifname.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $	*/
2 
3 /*
4  * Copyright (C) 2012 by Darren Reed.
5  *
6  * See the IPFILTER.LICENCE file for details on licencing.
7  *
8  * Id: printifname.c,v 1.1.1.2 2012/07/22 13:44:40 darrenr Exp $
9  */
10 
11 #include "ipf.h"
12 
13 
14 void
printifname(format,name,ifp)15 printifname(format, name, ifp)
16 	char *format, *name;
17 	void *ifp;
18 {
19 	PRINTF("%s%s", format, name);
20 	if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*"))
21 		PRINTF("(!)");
22 }
23