diff options
Diffstat (limited to 'libbb/qmodule.c')
-rw-r--r-- | libbb/qmodule.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libbb/qmodule.c b/libbb/qmodule.c deleted file mode 100644 index 4e4e79d..0000000 --- a/libbb/qmodule.c +++ /dev/null @@ -1,30 +0,0 @@ -/* vi: set sw=4 ts=4: */ -/* - Copyright (C) 2002 Tim Riker <Tim@Rikers.org> - everyone seems to claim it someplace. ;-) -*/ - -#include <errno.h> - -#include "libbb.h" - -int query_module(const char *name, int which, void *buf, size_t bufsize, size_t *ret); - -int my_query_module(const char *name, int which, void **buf, - size_t *bufsize, size_t *ret) -{ - int my_ret; - - my_ret = query_module(name, which, *buf, *bufsize, ret); - - if (my_ret == -1 && errno == ENOSPC) { - *buf = xrealloc(*buf, *ret); - *bufsize = *ret; - - my_ret = query_module(name, which, *buf, *bufsize, ret); - } - - return my_ret; -} - - |