Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/npf/npfctl Don't depend on yacc to include stdlib.h...
details: https://anonhg.NetBSD.org/src/rev/2db46420ceed
branches: trunk
changeset: 335364:2db46420ceed
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Jan 04 18:30:05 2015 +0000
description:
Don't depend on yacc to include stdlib.h or string.h.
diffstat:
usr.sbin/npf/npfctl/npf_parse.y | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r a3a783d9ca05 -r 2db46420ceed usr.sbin/npf/npfctl/npf_parse.y
--- a/usr.sbin/npf/npfctl/npf_parse.y Sun Jan 04 18:18:20 2015 +0000
+++ b/usr.sbin/npf/npfctl/npf_parse.y Sun Jan 04 18:30:05 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_parse.y,v 1.36 2014/12/26 22:44:54 christos Exp $ */
+/* $NetBSD: npf_parse.y,v 1.37 2015/01/04 18:30:05 joerg Exp $ */
/*-
* Copyright (c) 2011-2014 The NetBSD Foundation, Inc.
@@ -31,10 +31,12 @@
%{
+#include <err.h>
+#include <netdb.h>
#include <stdio.h>
-#include <err.h>
+#include <stdlib.h>
+#include <string.h>
#include <vis.h>
-#include <netdb.h>
#include "npfctl.h"
Home |
Main Index |
Thread Index |
Old Index