diff options
author | Roy Marples <roy@marples.name> | 2007-09-19 13:55:01 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-09-19 13:55:01 +0000 |
commit | a74dd430d5c513f1e4d8ed13d7865eb24ccc5494 (patch) | |
tree | a85f271e9d6979a3831497b9e9b219dc82c41c5a /src | |
parent | 77f9015f0bf09c5ef3c51009e21d8e687006c3e4 (diff) |
Punt rc_xcalloc as nothing uses it
Diffstat (limited to 'src')
-rw-r--r-- | src/librc-misc.c | 11 | ||||
-rw-r--r-- | src/librc.h | 1 | ||||
-rw-r--r-- | src/rc.h | 1 |
3 files changed, 0 insertions, 13 deletions
diff --git a/src/librc-misc.c b/src/librc-misc.c index 87949059..ebf020e2 100644 --- a/src/librc-misc.c +++ b/src/librc-misc.c @@ -19,17 +19,6 @@ # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH) #endif -void *rc_xcalloc (size_t n, size_t size) -{ - void *value = calloc (n, size); - - if (value) - return value; - - ERRX -} -librc_hidden_def(rc_xcalloc) - void *rc_xmalloc (size_t size) { void *value = malloc (size); diff --git a/src/librc.h b/src/librc.h index ce97b357..397113c6 100644 --- a/src/librc.h +++ b/src/librc.h @@ -110,7 +110,6 @@ librc_hidden_proto(rc_strlist_join) librc_hidden_proto(rc_strlist_reverse) librc_hidden_proto(rc_update_deptree) librc_hidden_proto(rc_wait_service) -librc_hidden_proto(rc_xcalloc) librc_hidden_proto(rc_xmalloc) librc_hidden_proto(rc_xrealloc) librc_hidden_proto(rc_xstrdup) @@ -166,7 +166,6 @@ extern FILE *rc_environ_fd; /* RC utility functions. Although not directly related to RC in general, they are used by RC itself and the supporting applications. */ -void *rc_xcalloc (size_t n, size_t size); void *rc_xmalloc (size_t size); void *rc_xrealloc (void *ptr, size_t size); char *rc_xstrdup (const char *str); |