Skip to content

Commit

Permalink
Add const qualifier to configuration path argument
Browse files Browse the repository at this point in the history
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
  • Loading branch information
Roosembert Palacios committed Oct 26, 2019
1 parent 2863f16 commit e826cc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/configator.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ static void configator_read(FILE* fp, char* line)
}
}

int configator(struct configator* config, char* path)
int configator(struct configator* config, const char* path)
{
FILE* fp = fopen(path, "r");

Expand Down
2 changes: 1 addition & 1 deletion src/configator.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ struct configator
uint16_t sections_len;
};

int configator(struct configator* config, char* path);
int configator(struct configator* config, const char* path);

#endif

0 comments on commit e826cc3

Please sign in to comment.