]> git.pld-linux.org Git - packages/poldek.git/blob - poldek-glibc-internal.patch
remove also static selinux libraries from BRs
[packages/poldek.git] / poldek-glibc-internal.patch
1 commit c6c6020ba55a3a14fc2ca190c5623bf51ac0d8b6
2 Author: Kacper Kornet <draenog@pld-linux.org>
3 Date:   Mon Mar 24 06:58:32 2014 +0000
4
5     Don't use internal glibc function
6
7 diff --git a/cli/shell.c b/cli/shell.c
8 index bcd334a..58067e8 100644
9 --- a/cli/shell.c
10 +++ b/cli/shell.c
11 @@ -73,6 +73,11 @@ struct sh_ctx {
12  
13  static struct sh_ctx sh_ctx = { COMPLETITION_CTX_NONE, NULL };
14  
15 +inline static int option_is_end (const struct argp_option *__opt)
16 +{
17 +    return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
18 +}
19 +
20  static
21  int is_upgradeable(struct poclidek_ctx *cctx, struct pkg *pkg, int reverse)
22  {
23 @@ -191,7 +196,7 @@ static char *command_options_generator(const char *text, int state)
24      
25          len = strlen(&text[2]);
26      
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];
30          
31              /* skip hidden options */
This page took 0.023375 seconds and 3 git commands to generate.