summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/xmalloc.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-25 07:09:31 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-25 07:09:31 +0000
commit8d750ef18e3354788d6bc7e04587d59e85df733a (patch)
treea16c0f5b63ef53b5c584c692a20b42196101ddb5 /usr.bin/tmux/xmalloc.h
parent17f681342705333fabc0671bff9d12e477063894 (diff)
Fix up some printflike attributes.
Diffstat (limited to 'usr.bin/tmux/xmalloc.h')
-rw-r--r--usr.bin/tmux/xmalloc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/xmalloc.h b/usr.bin/tmux/xmalloc.h
index 570c2e33e4a..a89bd1d470c 100644
--- a/usr.bin/tmux/xmalloc.h
+++ b/usr.bin/tmux/xmalloc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: xmalloc.h,v 1.3 2019/11/28 09:51:58 nicm Exp $ */
+/* $OpenBSD: xmalloc.h,v 1.4 2021/08/25 07:09:30 nicm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -30,12 +30,14 @@ int xasprintf(char **, const char *, ...)
__attribute__((__format__ (printf, 2, 3)))
__attribute__((__nonnull__ (2)));
int xvasprintf(char **, const char *, va_list)
+ __attribute__((__format__ (printf, 2, 0)))
__attribute__((__nonnull__ (2)));
int xsnprintf(char *, size_t, const char *, ...)
__attribute__((__format__ (printf, 3, 4)))
__attribute__((__nonnull__ (3)))
__attribute__((__bounded__ (__string__, 1, 2)));
int xvsnprintf(char *, size_t, const char *, va_list)
+ __attribute__((__format__ (printf, 3, 0)))
__attribute__((__nonnull__ (3)))
__attribute__((__bounded__ (__string__, 1, 2)));