diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2014-04-26 18:21:21 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-01-21 05:27:46 +0100 |
commit | 9eb07a81fa359f323bfa540f8fbefa4c11e2260c (patch) | |
tree | af1d00b8f45c7f56b5485d21775d5ebf5d5a86e8 /src/pacman/ini.c | |
parent | 7ed0d60a0db26e8ac2224196b3a629676a0b9c21 (diff) | |
download | pacman-9eb07a81fa359f323bfa540f8fbefa4c11e2260c.tar.gz pacman-9eb07a81fa359f323bfa540f8fbefa4c11e2260c.tar.xz |
ini.c: remove final callback call
Storing repo information removes the need for the final callback. This
allows the call signature to be re-purposed for indicating read errors.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'src/pacman/ini.c')
-rw-r--r-- | src/pacman/ini.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pacman/ini.c b/src/pacman/ini.c index 2eb32302..7b35c243 100644 --- a/src/pacman/ini.c +++ b/src/pacman/ini.c @@ -172,10 +172,6 @@ static int _parse_ini(const char *file, ini_parser_fn cb, void *data, } } - if(depth == 0) { - ret = cb(NULL, 0, NULL, NULL, NULL, data); - } - cleanup: if(fp) { fclose(fp); @@ -199,8 +195,7 @@ cleanup: * otherwise * * @note The callback will be called at the beginning of each section with an - * empty key and value, for each key/value pair, and when parsing is complete - * with all arguments except @a data empty. + * empty key and value and for each key/value pair. * * @note The @a key and @a value passed to @ cb will be overwritten between * calls. The section name will remain valid until after @a cb is called to |