diff options
author | Roy Marples <roy@marples.name> | 2007-10-08 11:11:21 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-08 11:11:21 +0000 |
commit | a89ceb7e2c994e2a3907d9c906d99021a6e15788 (patch) | |
tree | 5725e344e99804953472a29598eb8c3e04d95c7a /src/rc-misc.h | |
parent | e7dab9bb91344476603cc01a9db95c891e01085d (diff) |
Punt rc_ from xstrdup, xalloc, xrealloc and exists as they're not in librc anymore
Diffstat (limited to 'src/rc-misc.h')
-rw-r--r-- | src/rc-misc.h | 8 |
1 files changed, 4 insertions, 4 deletions
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; |