diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:05:24 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:05:24 +0000 |
commit | ae6903b9e32081b24fc1068760ef4df0be489658 (patch) | |
tree | e472576ebf6082a5c0f7bd0520e7ba42ffe97cb7 /usr.sbin | |
parent | 75427eeb705f0d4ecf1084235513bb040aa3473c (diff) |
ibuf_get_string() was added to the ibuf API, remove local version
OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/util.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/usr.sbin/bgpd/util.c b/usr.sbin/bgpd/util.c index 257c7ad59a2..311ba143f59 100644 --- a/usr.sbin/bgpd/util.c +++ b/usr.sbin/bgpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.88 2024/09/30 12:54:12 claudio Exp $ */ +/* $OpenBSD: util.c,v 1.89 2024/11/21 13:05:23 claudio Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -32,22 +32,6 @@ #include "rde.h" #include "log.h" -char * -ibuf_get_string(struct ibuf *buf, size_t len) -{ - char *str; - - if (ibuf_size(buf) < len) { - errno = EBADMSG; - return (NULL); - } - str = strndup(ibuf_data(buf), len); - if (str == NULL) - return (NULL); - ibuf_skip(buf, len); - return (str); -} - const char * log_addr(const struct bgpd_addr *addr) { |