Punt rc_xcalloc as nothing uses it

This commit is contained in:
Roy Marples 2007-09-19 13:55:01 +00:00
parent 77f9015f0b
commit a74dd430d5
3 changed files with 0 additions and 13 deletions

View File

@ -19,17 +19,6 @@
# define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH) # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
#endif #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 *rc_xmalloc (size_t size)
{ {
void *value = malloc (size); void *value = malloc (size);

View File

@ -110,7 +110,6 @@ librc_hidden_proto(rc_strlist_join)
librc_hidden_proto(rc_strlist_reverse) librc_hidden_proto(rc_strlist_reverse)
librc_hidden_proto(rc_update_deptree) librc_hidden_proto(rc_update_deptree)
librc_hidden_proto(rc_wait_service) librc_hidden_proto(rc_wait_service)
librc_hidden_proto(rc_xcalloc)
librc_hidden_proto(rc_xmalloc) librc_hidden_proto(rc_xmalloc)
librc_hidden_proto(rc_xrealloc) librc_hidden_proto(rc_xrealloc)
librc_hidden_proto(rc_xstrdup) librc_hidden_proto(rc_xstrdup)

View File

@ -166,7 +166,6 @@ extern FILE *rc_environ_fd;
/* RC utility functions. /* RC utility functions.
Although not directly related to RC in general, they are used by RC Although not directly related to RC in general, they are used by RC
itself and the supporting applications. */ itself and the supporting applications. */
void *rc_xcalloc (size_t n, size_t size);
void *rc_xmalloc (size_t size); void *rc_xmalloc (size_t size);
void *rc_xrealloc (void *ptr, size_t size); void *rc_xrealloc (void *ptr, size_t size);
char *rc_xstrdup (const char *str); char *rc_xstrdup (const char *str);