Skip to content

Commit

Permalink
Changed param naming and header format
Browse files Browse the repository at this point in the history
  • Loading branch information
rxi committed Dec 18, 2016
1 parent 7a0dc07 commit c8796f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ini.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ const char* ini_get(ini_t *ini, const char *section, const char *key) {


int ini_sget(
ini_t *ini, const char *section, const char *value,
ini_t *ini, const char *section, const char *key,
const char *scanfmt, void *dst
) {
const char *val = ini_get(ini, section, value);
const char *val = ini_get(ini, section, key);
if (!val) {
return 0;
}
Expand Down
3 changes: 1 addition & 2 deletions src/ini.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ typedef struct ini_t ini_t;
ini_t* ini_load(const char *filename);
void ini_free(ini_t *ini);
const char* ini_get(ini_t *ini, const char *section, const char *key);
int ini_sget(ini_t *ini, const char *section, const char *value,
const char *scanfmt, void *dst);
int ini_sget(ini_t *ini, const char *section, const char *key, const char *scanfmt, void *dst);

#endif

0 comments on commit c8796f8

Please sign in to comment.