1 commit c6c6020ba55a3a14fc2ca190c5623bf51ac0d8b6
2 Author: Kacper Kornet <draenog@pld-linux.org>
3 Date: Mon Mar 24 06:58:32 2014 +0000
5 Don't use internal glibc function
7 diff --git a/cli/shell.c b/cli/shell.c
8 index bcd334a..58067e8 100644
11 @@ -73,6 +73,11 @@ struct sh_ctx {
13 static struct sh_ctx sh_ctx = { COMPLETITION_CTX_NONE, NULL };
15 +inline static int option_is_end (const struct argp_option *__opt)
17 + return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
21 int is_upgradeable(struct poclidek_ctx *cctx, struct pkg *pkg, int reverse)
23 @@ -191,7 +196,7 @@ static char *command_options_generator(const char *text, int state)
25 len = strlen(&text[2]);
27 - for (i = 0; !_option_is_end(&command->argp_opts[i]); i++) {
28 + for (i = 0; !option_is_end(&command->argp_opts[i]); i++) {
29 const struct argp_option *argp_opt = &command->argp_opts[i];
31 /* skip hidden options */