diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-12-06 19:50:35 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-12-06 18:52:00 +0000 |
commit | 982dab88350732b60eb54a91b76927b0b044ab9d (patch) | |
tree | 7ad6e3cceb18e0c1a6205b94682f35b0caf18180 /libpam/pam_misc.c | |
parent | be9f2fce28c75e8b700c56c37c7e4c2386f726ec (diff) | |
download | pam-982dab88350732b60eb54a91b76927b0b044ab9d.tar.gz pam-982dab88350732b60eb54a91b76927b0b044ab9d.tar.bz2 pam-982dab88350732b60eb54a91b76927b0b044ab9d.zip |
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 <tobias@stoeckmann.org>
Diffstat (limited to 'libpam/pam_misc.c')
-rw-r--r-- | libpam/pam_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <syslog.h> #include <ctype.h> -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); |