str_appendn() takes a variable argument list of items to append, terminated by a
NULL. Every single time I have used it, I have forgotten the NULL.
Add a sentinel attribute to make it harder to forget in future.
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
/*
* A vararg string appender.
*/
-static char *str_appendn(char *s, ...) __attribute__((__warn_unused_result__));
+static char *str_appendn(char *s, ...)
+ __attribute__((__warn_unused_result__, sentinel));
/*
* An error-checking strdup().