Skip to content

Commit

Permalink
get_shadow_line: Move const string into function scope
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed May 18, 2021
1 parent 425c9d6 commit 4e9c974
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions get_shadow_line.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@

#define TIMEOUT 5000

static char conf_filename[] = "/etc/mxshadow.conf";

static int read_config(struct sockaddr_in *addr) {
static const char conf_filename[] = "/etc/mxshadow.conf";
FILE *f _cleanup_(free_file) = NULL;
char *line _cleanup_(free_string) = NULL;
size_t n = 0;
Expand Down

0 comments on commit 4e9c974

Please sign in to comment.