summaryrefslogtreecommitdiff
path: root/bin/systrace/policy.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2002-06-04 19:07:05 +0000
committerNiels Provos <provos@cvs.openbsd.org>2002-06-04 19:07:05 +0000
commitefa8d08e000b6269759ee267b6e4ab2b9a736ba6 (patch)
treef3311ce65a477ef8e5de941bc5cf6b77219e0073 /bin/systrace/policy.c
parent8b8fc885e8f49d6c8e09aa10d4509c031d7d8d78 (diff)
__FUNCTION__ -> __func__ from espie@
Diffstat (limited to 'bin/systrace/policy.c')
-rw-r--r--bin/systrace/policy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/systrace/policy.c b/bin/systrace/policy.c
index 080a539ba4b..a7140352992 100644
--- a/bin/systrace/policy.c
+++ b/bin/systrace/policy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: policy.c,v 1.1 2002/06/04 17:20:04 provos Exp $ */
+/* $OpenBSD: policy.c,v 1.2 2002/06/04 19:07:04 provos Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -177,7 +177,7 @@ systrace_newpolicy(char *emulation, char *name)
/* New policies requires intialization */
if ((tmp->name = strdup(name)) == NULL)
- err(1, "%s:%d: strdup", __FUNCTION__, __LINE__);
+ err(1, "%s:%d: strdup", __func__, __LINE__);
strlcpy(tmp->emulation, emulation, sizeof(tmp->emulation));
SPLAY_INSERT(policytree, &policyroot, tmp);
@@ -201,7 +201,7 @@ systrace_policyflq(struct policy *policy, char *emulation, char *name)
return (&tmp->flq);
if ((tmp = calloc(1, sizeof(struct policy_syscall))) == NULL)
- err(1, "%s:%d: out of memory", __FUNCTION__, __LINE__);
+ err(1, "%s:%d: out of memory", __func__, __LINE__);
strlcpy(tmp->emulation, emulation, sizeof(tmp->emulation));
strlcpy(tmp->name, name, sizeof(tmp->name));
@@ -353,7 +353,7 @@ systrace_readpolicy(char *filename)
filter = calloc(1, sizeof(struct filter));
if (filter == NULL)
- err(1, "%s:%d: calloc", __FUNCTION__, __LINE__);
+ err(1, "%s:%d: calloc", __func__, __LINE__);
filter->rule = strdup(rule);
strlcpy(filter->name, name, sizeof(filter->name));