mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
2a63c3be15
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
40 lines
514 B
C
40 lines
514 B
C
|
|
/*
|
|
* Copyright (C) 2012 by Darren Reed.
|
|
*
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifdef IPFILTER_SCAN
|
|
|
|
#include <ctype.h>
|
|
#include <stdio.h>
|
|
#include "ipf.h"
|
|
#include "netinet/ip_scan.h"
|
|
|
|
void
|
|
printsbuf(char *buf)
|
|
{
|
|
u_char *s;
|
|
int i;
|
|
|
|
for (s = (u_char *)buf, i = ISC_TLEN; i; i--, s++) {
|
|
if (ISPRINT(*s))
|
|
putchar(*s);
|
|
else
|
|
PRINTF("\\%o", *s);
|
|
}
|
|
}
|
|
#else
|
|
void printsbuf(char *buf);
|
|
|
|
void printsbuf(char *buf)
|
|
{
|
|
#if 0
|
|
buf = buf; /* gcc -Wextra */
|
|
#endif
|
|
}
|
|
#endif
|