aboutsummaryrefslogtreecommitdiff
path: root/src/librc/rc.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-17 13:25:56 +0000
committerRoy Marples <roy@marples.name>2008-03-17 13:25:56 +0000
commit4c1466642351ddb01cc7353601153a79326f18f7 (patch)
treecb9da1a90aa9480ef276626f40c556379222ec51 /src/librc/rc.h
parent50a7697bf207e4919ce893bfc1604fd3a9d807de (diff)
Punt the rc_strcatpaths function and use snprintf instead to save on expensive malloc calls.
Diffstat (limited to 'src/librc/rc.h')
-rw-r--r--src/librc/rc.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/librc/rc.h b/src/librc/rc.h
index bf40e31c..ba49e78d 100644
--- a/src/librc/rc.h
+++ b/src/librc/rc.h
@@ -27,17 +27,6 @@
#ifndef __RC_H__
#define __RC_H__
-#ifdef __GNUC__
-# define GCC_VERSION (__GNUC__ * 1000 + __GNUC__MINOR)
-# if (GCC_VERSION >= 3005)
-# define SENTINEL __attribute__ ((__sentinel__))
-# endif
-# define DEPRECATED __attribute__ ((deprecated))
-#endif
-#ifndef SENTINEL
-# define SENTINEL
-#endif
-
#include <sys/types.h>
#include <sys/queue.h>
#include <stdbool.h>
@@ -444,13 +433,6 @@ void rc_stringlist_sort(RC_STRINGLIST **);
* @param list to free */
void rc_stringlist_free(RC_STRINGLIST *);
-/*! Concatenate paths adding '/' if needed. The resultant pointer should be
- * freed when finished with.
- * @param path1 starting path
- * @param paths NULL terminated list of paths to add
- * @return pointer to the new path */
-char *rc_strcatpaths(const char *, const char *, ...) SENTINEL;
-
typedef struct rc_pid
{
pid_t pid;