From a89ceb7e2c994e2a3907d9c906d99021a6e15788 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 8 Oct 2007 11:11:21 +0000 Subject: Punt rc_ from xstrdup, xalloc, xrealloc and exists as they're not in librc anymore --- src/rc-misc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/rc-misc.h') diff --git a/src/rc-misc.h b/src/rc-misc.h index e7bef747..fb4ea855 100644 --- a/src/rc-misc.h +++ b/src/rc-misc.h @@ -43,7 +43,7 @@ #define ERRX fprintf (stderr, "out of memory\n"); exit (1) -static inline void *rc_xmalloc (size_t size) +static inline void *xmalloc (size_t size) { void *value = malloc (size); @@ -53,7 +53,7 @@ static inline void *rc_xmalloc (size_t size) ERRX; } -static inline void *rc_xrealloc (void *ptr, size_t size) +static inline void *xrealloc (void *ptr, size_t size) { void *value = realloc (ptr, size); @@ -63,7 +63,7 @@ static inline void *rc_xrealloc (void *ptr, size_t size) ERRX; } -static inline char *rc_xstrdup (const char *str) +static inline char *xstrdup (const char *str) { char *value; @@ -80,7 +80,7 @@ static inline char *rc_xstrdup (const char *str) #undef ERRX -static inline bool rc_exists (const char *pathname) +static inline bool exists (const char *pathname) { struct stat buf; -- cgit v1.2.3