summaryrefslogtreecommitdiff
path: root/strfuncs.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-21 12:56:08 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-21 12:56:08 -0500
commita61e28529df634963c0967e59aae673f8fc7741e (patch)
tree2c8e5c9ed1ff63870f8a94bd33ecd08a9825caa7 /strfuncs.h
parentf351f5981604338db80e2b2864b7dcb818e7fc61 (diff)
downloadgpsd-a61e28529df634963c0967e59aae673f8fc7741e.tar.gz
Easy splint cleanups. All regression tests pass.
Diffstat (limited to 'strfuncs.h')
-rw-r--r--strfuncs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/strfuncs.h b/strfuncs.h
index 7ea136fb..e38305b6 100644
--- a/strfuncs.h
+++ b/strfuncs.h
@@ -14,14 +14,14 @@
#include "compiler.h"
-static inline bool str_starts_with(const char *str, const char *prefix)
+static /*@unused@*/ inline bool str_starts_with(const char *str, const char *prefix)
{
return strncmp(str, prefix, strlen(prefix)) == 0;
}
PRINTF_FUNC(3, 4)
-static inline void str_appendf(char *str, size_t alloc_size, const char *format, ...)
+static /*@unused@*/ inline void str_appendf(char *str, size_t alloc_size, const char *format, ...)
{
va_list ap;
va_start(ap, format);
@@ -30,13 +30,13 @@ static inline void str_appendf(char *str, size_t alloc_size, const char *format,
}
-static inline void str_vappendf(char *str, size_t alloc_size, const char *format, va_list ap)
+static /*@unused@*/ inline void str_vappendf(char *str, size_t alloc_size, const char *format, va_list ap)
{
(void) vsnprintf(str + strlen(str), alloc_size - strlen(str), format, ap);
}
-static inline void str_rstrip_char(char *str, char ch)
+static /*@unused@*/ inline void str_rstrip_char(char *str, char ch)
{
if (strlen(str) != 0 && str[strlen(str) - 1] == ch) {
str[strlen(str) - 1] = '\0';