aboutsummaryrefslogtreecommitdiff
path: root/src/rc.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-05 15:01:09 +0000
committerRoy Marples <roy@marples.name>2007-04-05 15:01:09 +0000
commit308042c87bd920d787265f1854bf1695bdbab8e4 (patch)
treed82ee57f02e53c08bd5d66909d326942a4bb9fba /src/rc.h
parent6fb700e52c1684637dcc77a89ea2fc7a1b2050b1 (diff)
We now compile on OpenBSD (no idea if it works or not yet)
Diffstat (limited to 'src/rc.h')
-rw-r--r--src/rc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rc.h b/src/rc.h
index 3ba7cc56..69999114 100644
--- a/src/rc.h
+++ b/src/rc.h
@@ -8,6 +8,10 @@
#ifndef __RC_H__
#define __RC_H__
+#ifdef __GNUC__
+# define SENTINEL __attribute__ ((__sentinel__))
+#endif
+
#include <sys/types.h>
#include <stdbool.h>
@@ -145,7 +149,7 @@ void *rc_xrealloc (void *ptr, size_t size);
char *rc_xstrdup (const char *str);
/* Concat paths adding '/' if needed. */
-char *rc_strcatpaths (const char *path1, const char *paths, ...);
+char *rc_strcatpaths (const char *path1, const char *paths, ...) SENTINEL;
bool rc_is_env (const char *variable, const char *value);
bool rc_exists (const char *pathname);