Skip to content

Commit

Permalink
fixup cfg: rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
dacav committed Jan 3, 2025
1 parent d3f9970 commit e9ae9c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static int slurp(int fd, size_t to_read, char **dst) {
//
// We want to ensure the following properties:
// ...
static int open_safe(int *outfd, size_t *outsize, const char *path) {
static int open_safely(int *outfd, size_t *outsize, const char *path) {
char *copy, *saveptr = NULL;
int fd = -1, parent_fd, r = PAM_SERVICE_ERR;
const char *p, *c;
Expand Down Expand Up @@ -273,7 +273,7 @@ static int cfg_load_defaults(cfg_t *cfg, const char *config_path) {
size_t fsize;
char *buffer = NULL;

r = open_safe(&fd, &fsize, config_path ? config_path : CFG_DEFAULT_PATH);
r = open_safely(&fd, &fsize, config_path ? config_path : CFG_DEFAULT_PATH);
if (r)
return r;

Expand Down

0 comments on commit e9ae9c6

Please sign in to comment.