diff options
author | mlaier <mlaier@FreeBSD.org> | 2004-03-17 21:11:02 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2004-03-17 21:11:02 +0000 |
commit | 01e7b3342e5074db1ea0c103fdfa9759729330eb (patch) | |
tree | d6afb183edfb5fc8f0f20dca0fd9f0f4848a762a /sys/contrib/pf/net/pf_osfp.c | |
parent | 257769d6cca6a4d7fb115ea3fcb5f6043062e91f (diff) | |
download | FreeBSD-src-01e7b3342e5074db1ea0c103fdfa9759729330eb.zip FreeBSD-src-01e7b3342e5074db1ea0c103fdfa9759729330eb.tar.gz |
Style(9) round for the pf kernel parts. Mostly #if defined() -> #ifdef
Also set HOOK_HACK to true (remove the related #ifdef's) as we have the
hooks in the kernel this was missed during the merge from the port.
Noticed by: Amir S. (for the HOOK_HACK part)
Approved by: bms(mentor)
Diffstat (limited to 'sys/contrib/pf/net/pf_osfp.c')
-rw-r--r-- | sys/contrib/pf/net/pf_osfp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/contrib/pf/net/pf_osfp.c b/sys/contrib/pf/net/pf_osfp.c index 45d0c10..8687cb0 100644 --- a/sys/contrib/pf/net/pf_osfp.c +++ b/sys/contrib/pf/net/pf_osfp.c @@ -41,7 +41,7 @@ # define DPFPRINTF(format, x...) \ if (pf_status.debug >= PF_DEBUG_NOISY) \ printf(format , ##x) -#if defined(__FreeBSD__) +#ifdef __FreeBSD__ typedef uma_zone_t pool_t; #else typedef struct pool pool_t; @@ -59,7 +59,7 @@ typedef struct pool pool_t; # define pool_put(pool, item) free(item) # define pool_init(pool, size, a, ao, f, m, p) (*(pool)) = (size) -# if defined(__FreeBSD__) +# ifdef __FreeBSD__ # define NTOHS(x) (x) = ntohs((u_int16_t)(x)) # endif @@ -236,7 +236,7 @@ pf_osfp_match(struct pf_osfp_enlist *list, pf_osfp_t os) } /* Initialize the OS fingerprint system */ -#if defined(__FreeBSD__) +#ifdef __FreeBSD__ int #else void @@ -259,8 +259,8 @@ pf_osfp_initialize(void) "pfosfp", NULL); #endif SLIST_INIT(&pf_osfp_list); -#if defined(__FreeBSD__) -#if defined(_KERNEL) +#ifdef __FreeBSD__ +#ifdef _KERNEL return (error); #else return (0); |