diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2014-10-20 23:57:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2014-10-20 23:57:15 +0000 |
commit | 9e4b922a7877bb2d70767256f03d742ff16d61b7 (patch) | |
tree | 7d1d794ad6910c7f3d83881d3eed94afaf7cc44a /usr.bin/tmux/xmalloc.c | |
parent | 7b01a986e07898793077ec84a6ed15b9483f3f3e (diff) |
Better format for printf format attributes.
Diffstat (limited to 'usr.bin/tmux/xmalloc.c')
-rw-r--r-- | usr.bin/tmux/xmalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/xmalloc.c b/usr.bin/tmux/xmalloc.c index d64263cce78..b9fe9c7caad 100644 --- a/usr.bin/tmux/xmalloc.c +++ b/usr.bin/tmux/xmalloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xmalloc.c,v 1.6 2014/10/20 23:27:14 nicm Exp $ */ +/* $OpenBSD: xmalloc.c,v 1.7 2014/10/20 23:57:14 nicm Exp $ */ /* * Copyright (c) 2004 Nicholas Marriott <nicm@users.sourceforge.net> @@ -94,7 +94,7 @@ xreallocarray(void *oldptr, size_t nmemb, size_t size) return (newptr); } -int printflike2 +int xasprintf(char **ret, const char *fmt, ...) { va_list ap; @@ -119,7 +119,7 @@ xvasprintf(char **ret, const char *fmt, va_list ap) return (i); } -int printflike3 +int xsnprintf(char *buf, size_t len, const char *fmt, ...) { va_list ap; |