diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-12-22 10:58:08 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-12-22 14:32:50 +0100 |
commit | f5bdd8ff82607e55a1c511e13e37a984408c8094 (patch) | |
tree | 0cf1c8860142eea988339e952fc4271b88e7b5b4 /libc/pwd_grp/getspent.c | |
parent | 2a3ffa836a3a9f94f19ee2671f41c1851221a105 (diff) |
libc/pwd_grp: Create template for non-reentrant functions
Avoid a lot of copy'n'paste code, no functionality change
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
Diffstat (limited to 'libc/pwd_grp/getspent.c')
-rw-r--r-- | libc/pwd_grp/getspent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/pwd_grp/getspent.c b/libc/pwd_grp/getspent.c index 5699b67d6..4feb9f988 100644 --- a/libc/pwd_grp/getspent.c +++ b/libc/pwd_grp/getspent.c @@ -4,5 +4,8 @@ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ -#define L_getspent +#define GETXXKEY_FUNC getspent +#define GETXXKEY_ENTTYPE struct spwd +#define GETXXKEY_ADD_PARAMS void +#define GETXXKEY_BUFLEN __UCLIBC_PWD_BUFFER_SIZE__ #include "pwd_grp.c" |