diff options
Diffstat (limited to 'contrib/ipfilter/lib/printifname.c')
-rw-r--r-- | contrib/ipfilter/lib/printifname.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/ipfilter/lib/printifname.c b/contrib/ipfilter/lib/printifname.c new file mode 100644 index 0000000..2e554d9 --- /dev/null +++ b/contrib/ipfilter/lib/printifname.c @@ -0,0 +1,22 @@ +/* $FreeBSD$ */ + +/* + * Copyright (C) 2012 by Darren Reed. + * + * See the IPFILTER.LICENCE file for details on licencing. + * + * $Id$ + */ + +#include "ipf.h" + + +void +printifname(format, name, ifp) + char *format, *name; + void *ifp; +{ + PRINTF("%s%s", format, name); + if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*")) + PRINTF("(!)"); +} |