diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-31 20:12:58 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-02-06 08:00:00 +0000 |
commit | 644dc6f0c15bccc7401e47785753e9c8d01018d3 (patch) | |
tree | 32afca676f02af3385fbd5feec7b43899358d3e7 /libpam/pam_handlers.c | |
parent | 9fa68ae79c213026d9621d6a70defb381e5a0533 (diff) | |
download | pam-644dc6f0c15bccc7401e47785753e9c8d01018d3.tar.gz pam-644dc6f0c15bccc7401e47785753e9c8d01018d3.tar.bz2 pam-644dc6f0c15bccc7401e47785753e9c8d01018d3.zip |
libpam_internal: introduce pam_line
The pam_assemble_line function is renamed to pam_line_assemble and
moved into libpam_internal so it can be shared across libpam and the
pam_env module.
Applied renaming to all other relevant functions and data structures
so it is easier to locate them in files.
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 55d5b2fa..7fd6ce84 100644 --- a/libpam/pam_handlers.c +++ b/libpam/pam_handlers.c @@ -18,7 +18,7 @@ #include <fcntl.h> #include <unistd.h> -#include "pam_assemble_line.h" +#include "pam_line.h" #define MODULE_CHUNK 4 #define UNKNOWN_MODULE "<*unknown module*>" @@ -61,14 +61,14 @@ static int _pam_parse_conf_file(pam_handle_t *pamh, FILE *f #endif /* PAM_READ_BOTH_CONFS */ ) { - struct line_buffer buffer; + struct pam_line_buffer buffer; int x; /* read a line from the FILE *f ? */ - _pam_buffer_init(&buffer); + _pam_line_buffer_init(&buffer); /* * read a line from the configuration (FILE *) f */ - while ((x = _pam_assemble_line(f, &buffer, ' ')) > 0) { + while ((x = _pam_line_assemble(f, &buffer, ' ')) > 0) { char *buf = buffer.assembled; char *tok, *nexttok=NULL; const char *this_service; |