]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
wall: add __format__ attribute
authorKarel Zak <kzak@redhat.com>
Fri, 18 Jun 2021 14:56:52 +0000 (16:56 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 18 Jun 2021 14:56:52 +0000 (16:56 +0200)
Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/wall.c

index 97d9a56b5c73c601224b19aa633714b2d8cd6ea2..fb283d3bfd96685c53f16f8182b42478ca51c9ab 100644 (file)
@@ -296,7 +296,8 @@ static void buf_puts(struct buffer *bs, const char *s)
        bs->used += len;
 }
 
-static void buf_printf(struct buffer *bs, const char *fmt, ...)
+static void __attribute__((__format__ (__printf__, 2, 3)))
+       buf_printf(struct buffer *bs, const char *fmt, ...)
 {
        int rc;
        va_list ap;