diff options
author | Ruediger Meier | 2016-02-24 02:07:57 +0100 |
---|---|---|
committer | Ruediger Meier | 2016-02-29 13:04:59 +0100 |
commit | bbbf2aa85323f9aec3d7674d037d5245bb289b42 (patch) | |
tree | 1af6d90d93a7efe3f2385a832be29a30b58012bf /login-utils/newgrp.c | |
parent | misc: fix some includes (diff) | |
download | kernel-qcow2-util-linux-bbbf2aa85323f9aec3d7674d037d5245bb289b42.tar.gz kernel-qcow2-util-linux-bbbf2aa85323f9aec3d7674d037d5245bb289b42.tar.xz kernel-qcow2-util-linux-bbbf2aa85323f9aec3d7674d037d5245bb289b42.zip |
newgrp: rename memset_s()
It's already defined in OSX standard c library.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'login-utils/newgrp.c')
-rw-r--r-- | login-utils/newgrp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/login-utils/newgrp.c b/login-utils/newgrp.c index 141b41bf4..56639d1f0 100644 --- a/login-utils/newgrp.c +++ b/login-utils/newgrp.c @@ -62,7 +62,7 @@ static char *xgetpass(FILE *input, const char *prompt) /* Ensure memory is set to value c without compiler optimization getting * into way that could happen with memset(3). */ -static int memset_s(void *v, size_t sz, const int c) +static int xmemset_s(void *v, size_t sz, const int c) { volatile unsigned char *p = v; @@ -148,7 +148,7 @@ static int allow_setgid(const struct passwd *pe, const struct group *ge) if (pwd && *pwd && (xpwd = xgetpass(stdin, _("Password: ")))) { char *cbuf = crypt(xpwd, pwd); - memset_s(xpwd, strlen(xpwd), 0); + xmemset_s(xpwd, strlen(xpwd), 0); free(xpwd); if (!cbuf) warn(_("crypt failed")); |