summaryrefslogtreecommitdiff
path: root/sbin/photurisd/state.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2002-06-10 19:58:21 +0000
committerMarc Espie <espie@cvs.openbsd.org>2002-06-10 19:58:21 +0000
commit77224652be0edca8b40e37a6939445080d9c25d5 (patch)
treea5eceba166a3459311c840e9d12204ff3b287e4e /sbin/photurisd/state.c
parent35fd31a5849815bd4c982dfe259e378df50ccb9f (diff)
kill __FUNCTION__
add __attribute__((format...) Fix one bad call. okay provos@
Diffstat (limited to 'sbin/photurisd/state.c')
-rw-r--r--sbin/photurisd/state.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/photurisd/state.c b/sbin/photurisd/state.c
index 29f6e1fb926..5dbcd7b9159 100644
--- a/sbin/photurisd/state.c
+++ b/sbin/photurisd/state.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: state.c,v 1.9 2002/06/09 08:13:09 todd Exp $ */
+/* $OpenBSD: state.c,v 1.10 2002/06/10 19:58:20 espie Exp $ */
/*
* Copyright 1997-2000 Niels Provos <provos@citi.umich.edu>
@@ -82,7 +82,7 @@ state_save_verification(struct stateob *st, u_int8_t *buf, u_int16_t len)
st->verification = calloc(len, sizeof(u_int8_t));
if (st->verification == NULL) {
- log_error(__FUNCTION__": calloc()");
+ log_error("%s: calloc()", __func__);
return (-1);
}
}
@@ -122,7 +122,7 @@ state_new(void)
struct stateob *p;
if((p = calloc(1, sizeof(struct stateob)))==NULL) {
- log_error(__FUNCTION__": calloc");
+ log_error("%s: calloc", __func__);
return (NULL);
}
@@ -280,9 +280,9 @@ state_expire(void)
(tmp->lifetime == -1 || tmp->lifetime > tm))
continue;
- LOG_DBG((LOG_MISC, 35, __FUNCTION__
- ": Expiring state to %s in phase %d",
- tmp->address, tmp->phase));
+ LOG_DBG((LOG_MISC, 35,
+ "%s: Expiring state to %s in phase %d",
+ __func__, tmp->address, tmp->phase));
state_value_reset(tmp);
state_unlink(tmp);