From 982dab88350732b60eb54a91b76927b0b044ab9d Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Wed, 6 Dec 2023 19:50:35 +0100 Subject: libpam: rename _pam_StrTok to _pam_tokenize The _pam_StrTok function resembles strtok_r instead of strtok. For upcoming changes the naming should not relate to strtok anymore. Signed-off-by: Tobias Stoeckmann --- libpam/pam_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpam/pam_misc.c') diff --git a/libpam/pam_misc.c b/libpam/pam_misc.c index 9588be17..8cf2214e 100644 --- a/libpam/pam_misc.c +++ b/libpam/pam_misc.c @@ -45,7 +45,7 @@ #include #include -char *_pam_StrTok(char *from, const char *format, char **next) +char *_pam_tokenize(char *from, const char *format, char **next) /* * this function is a variant of the standard strtok, it differs in that * it takes an additional argument and doesn't nul terminate tokens until @@ -198,7 +198,7 @@ int _pam_mkargv(const char *s, char ***argv, int *argc) argvbufp = (char *) argvbuf + (l * sizeof(char *)); D(("[%s]",sbuf)); - while ((sbuf = _pam_StrTok(sbuf, " \n\t", &tmp))) { + while ((sbuf = _pam_tokenize(sbuf, " \n\t", &tmp))) { D(("arg #%d",++count)); D(("->[%s]",sbuf)); strcpy(argvbufp, sbuf); -- cgit v1.2.3