diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-14 23:08:45 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-14 23:08:45 +0000 |
commit | 5a91bea3bd6d1dd1815af0dc6bb6d4b3ef6b6d49 (patch) | |
tree | 014712c28bd8e441a41645e27637da7cdec83f0a /usr.sbin/bgpd/pftable.c | |
parent | 31bf1568e7fd374cd351cbd4d98db53a591575d0 (diff) |
gccisms are bad, including __func__
requested by theo
Diffstat (limited to 'usr.sbin/bgpd/pftable.c')
-rw-r--r-- | usr.sbin/bgpd/pftable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/pftable.c b/usr.sbin/bgpd/pftable.c index 0f53c67531d..a3101d2122b 100644 --- a/usr.sbin/bgpd/pftable.c +++ b/usr.sbin/bgpd/pftable.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pftable.c,v 1.2 2004/05/08 19:17:20 henning Exp $ */ +/* $OpenBSD: pftable.c,v 1.3 2004/09/14 23:08:44 henning Exp $ */ /* * Copyright (c) 2004 Damien Miller <djm@openbsd.org> @@ -76,7 +76,7 @@ pftable_change(struct pf_table *pft) if (ret == -1) { if (errno == EINVAL) return (0); - log_warn("%s ioctl %s", __func__, strerror(errno)); + log_warn("pftable_change ioctl %s", strerror(errno)); } return (ret); @@ -95,7 +95,7 @@ pftable_clear(const char *name) sizeof(tio.pfrio_table.pfrt_name)); if (ioctl(devpf, DIOCRCLRADDRS, &tio) != 0) { - log_warn("%s ioctl %s", __func__, strerror(errno)); + log_warn("pftable_clear ioctl %s", strerror(errno)); return (-1); } @@ -200,7 +200,7 @@ pftable_add_work(const char *table, struct bgpd_addr *addr, tmp = realloc(pft->worklist, sizeof(*tmp) * pft->nalloc); if (tmp == NULL) { if (pft->worklist != NULL) { - log_warn("%s: malloc", __func__); + log_warn("pftable_add_work: malloc"); free(pft->worklist); pft->worklist = NULL; } |