Lines Matching refs:hsh
4 Subject: [PATCH] lib/hsh.c: rename hsh local variable
6 The hsh local variable name conflicts with the function prototype of
7 hsh() in hsh.h, causing the following build issues with old compilers
10 hsh.c: In function 'hsh':
11 hsh.c:28:21: error: declaration of 'hsh' shadows a global declaration [-Werror=shadow]
12 hsh.c:26:1: error: shadowed declaration is here [-Werror=shadow]
13 hsh.c: In function 'hsh_buf':
14 hsh.c:60:21: error: declaration of 'hsh' shadows a global declaration [-Werror=shadow]
15 hsh.c:26:1: error: shadowed declaration is here [-Werror=shadow]
22 lib/hsh.c | 12 ++++++------
25 diff --git a/lib/hsh.c b/lib/hsh.c
27 --- a/lib/hsh.c
28 +++ b/lib/hsh.c
31 hsh(jose_cfg_t *cfg, const char *alg, const void *data, size_t dlen)
33 - jose_io_auto_t *hsh = NULL;
38 @@ -33,8 +33,8 @@ hsh(jose_cfg_t *cfg, const char *alg, const void *data, size_t dlen)
42 - hsh = hsh_io(cfg, alg, enc);
43 - if (!buf || !enc || !hsh || !hsh->feed(hsh, data, dlen) || !hsh->done(hsh))
53 - jose_io_auto_t *hsh = NULL;
62 - hsh = a->hash.hsh(a, cfg, buf);
63 - if (!buf || !hsh || !hsh->feed(hsh, data, dlen) || !hsh->done(hsh))
64 + _hsh = a->hash.hsh(a, cfg, buf);