diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-27 18:20:15 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-27 18:20:15 +0000 |
commit | b2211c0277366f1c3e7ea21cf16474dc6ef07267 (patch) | |
tree | ce44eb250a85fb69564ddbb19967793e21a28050 /usr.bin | |
parent | 449821bc471a073d5ee4f3117e45d0200c27a1a7 (diff) |
- garbage collect unused buf_fappend(), which was also removed from ocvs's
buf.c some time ago.
from Michael W. Bombardieri
ok chl@ nicm@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/buf.c | 22 | ||||
-rw-r--r-- | usr.bin/rcs/buf.h | 4 |
2 files changed, 2 insertions, 24 deletions
diff --git a/usr.bin/rcs/buf.c b/usr.bin/rcs/buf.c index a0978353a6b..b961069b8bc 100644 --- a/usr.bin/rcs/buf.c +++ b/usr.bin/rcs/buf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.19 2010/12/01 20:25:15 chl Exp $ */ +/* $OpenBSD: buf.c,v 1.20 2011/03/27 18:20:14 jasper Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -222,26 +222,6 @@ buf_append(BUF *b, const void *data, size_t len) return (rlen); } -size_t -buf_fappend(BUF *b, const char *fmt, ...) -{ - size_t ret; - int n; - char *str; - va_list vap; - - va_start(vap, fmt); - n = vasprintf(&str, fmt, vap); - va_end(vap); - - if (n == -1) - errx(1, "buf_fappend: failed to format data"); - - ret = buf_append(b, str, n); - xfree(str); - return (ret); -} - /* * Returns the size of the buffer that is being used. */ diff --git a/usr.bin/rcs/buf.h b/usr.bin/rcs/buf.h index a4ec9237237..b675ec77d8d 100644 --- a/usr.bin/rcs/buf.h +++ b/usr.bin/rcs/buf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.h,v 1.11 2010/07/28 09:07:11 ray Exp $ */ +/* $OpenBSD: buf.h,v 1.12 2011/03/27 18:20:14 jasper Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -49,8 +49,6 @@ void *buf_release(BUF *); u_char buf_getc(BUF *, size_t); void buf_empty(BUF *); size_t buf_append(BUF *, const void *, size_t); -size_t buf_fappend(BUF *, const char *, ...) - __attribute__((format(printf, 2, 3))); void buf_putc(BUF *, int); size_t buf_len(BUF *); int buf_write_fd(BUF *, int); |