printifname.c revision 145510
1266692Sgshapiro/*	$NetBSD$	*/
290792Sgshapiro
390792Sgshapiro/*
490792Sgshapiro * Copyright (C) 1993-2001 by Darren Reed.
590792Sgshapiro *
6168515Sgshapiro * See the IPFILTER.LICENCE file for details on licencing.
790792Sgshapiro *
890792Sgshapiro * Id: printifname.c,v 1.2 2002/01/28 06:50:47 darrenr Exp
9285303Sgshapiro */
1090792Sgshapiro
11147078Sgshapiro#include "ipf.h"
1290792Sgshapiro
1390792Sgshapirovoid printifname(format, name, ifp)
14168515Sgshapirochar *format, *name;
15168515Sgshapirovoid *ifp;
16168515Sgshapiro{
17168515Sgshapiro	printf("%s%s", format, name);
18168515Sgshapiro	if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*"))
19168515Sgshapiro		printf("(!)");
20168515Sgshapiro}
21249729Sgshapiro