summaryrefslogtreecommitdiffstats
path: root/contrib/pf/pflogd/pidfile.c
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2004-03-15 13:41:17 +0000
committermlaier <mlaier@FreeBSD.org>2004-03-15 13:41:17 +0000
commit4c91a73d426123e1662d8a1b186f9605ca384b73 (patch)
tree0cd850f4bfbc1ebe7c447546892114cb24f965a6 /contrib/pf/pflogd/pidfile.c
parent950b98f1f71ea41489c4abcf9e4071bc2a3d33da (diff)
downloadFreeBSD-src-4c91a73d426123e1662d8a1b186f9605ca384b73.zip
FreeBSD-src-4c91a73d426123e1662d8a1b186f9605ca384b73.tar.gz
Fix some style(9) related issues after discussion with/education from bde:
- Add <sys/param.h> and <limits.h> where required (do not depend on other headers pulling it in). - __dead -> __dead2 - #if defined() -> #ifdef - Remove ugly PRIu64 macros and use %llu w/ (unsigned long long) cast. All changes looped back to OpenBSD (where applicable) for easier sync in the future. Requested by: bde Approved by: bms(mentor)
Diffstat (limited to 'contrib/pf/pflogd/pidfile.c')
-rw-r--r--contrib/pf/pflogd/pidfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/pf/pflogd/pidfile.c b/contrib/pf/pflogd/pidfile.c
index 61eca26..db6007f 100644
--- a/contrib/pf/pflogd/pidfile.c
+++ b/contrib/pf/pflogd/pidfile.c
@@ -1,3 +1,4 @@
+/* $FreeBSD$ */
/* $OpenBSD: pidfile.c,v 1.5 2002/05/26 09:29:02 deraadt Exp $ */
/* $NetBSD: pidfile.c,v 1.4 2001/02/19 22:43:42 cgd Exp $ */
@@ -47,7 +48,7 @@ static const char rcsid[] = "$OpenBSD: pidfile.c,v 1.5 2002/05/26 09:29:02 deraa
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#if defined(__FreeBSD__)
+#ifdef __FreeBSD__
#include "pidfile.h"
#else
#include <util.h>
OpenPOWER on IntegriCloud