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_handlers.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_handlers.c')
-rw-r--r-- | libpam/pam_handlers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpam/pam_handlers.c b/libpam/pam_handlers.c index bb6268b3..860a1abf 100644 --- a/libpam/pam_handlers.c +++ b/libpam/pam_handlers.c @@ -85,7 +85,7 @@ static int _pam_parse_conf_file(pam_handle_t *pamh, FILE *f /* No service field: all lines are for the known service. */ this_service = known_service; } else { - this_service = tok = _pam_StrTok(buf, " \n\t", &nexttok); + this_service = tok = _pam_tokenize(buf, " \n\t", &nexttok); } #ifdef PAM_READ_BOTH_CONFS @@ -103,7 +103,7 @@ static int _pam_parse_conf_file(pam_handle_t *pamh, FILE *f /* This is a service we are looking for */ D(("Found PAM config entry for: %s", this_service)); - tok = _pam_StrTok(NULL, " \n\t", &nexttok); + tok = _pam_tokenize(NULL, " \n\t", &nexttok); if (tok == NULL) { /* module type does not exist */ D(("empty module type for %s", this_service)); @@ -150,7 +150,7 @@ static int _pam_parse_conf_file(pam_handle_t *pamh, FILE *f for (i=0; i<_PAM_RETURN_VALUES; actions[i++] = _PAM_ACTION_UNDEF); } - tok = _pam_StrTok(NULL, " \n\t", &nexttok); + tok = _pam_tokenize(NULL, " \n\t", &nexttok); if (tok == NULL) { /* no module name given */ D(("no control flag supplied")); @@ -195,7 +195,7 @@ static int _pam_parse_conf_file(pam_handle_t *pamh, FILE *f _pam_set_default_control(actions, _PAM_ACTION_BAD); } - tok = _pam_StrTok(NULL, " \n\t", &nexttok); + tok = _pam_tokenize(NULL, " \n\t", &nexttok); if (pam_include) { if (substack) { res = _pam_add_handler(pamh, PAM_HT_SUBSTACK, other, |