mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
Silence compiler warnings.
* common/openpgp-oid.c (map_openpgp_pk_to_gcry): Use cast for enum conversion. * dirmngr/dns-stuff.c (get_dns_srv): Use explicit conversion from int to float. * sm/gpgsm.c (parse_keyserver_line): Initialize ERR. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
4fa0a65676
commit
f3e424d4e7
@ -568,7 +568,7 @@ map_openpgp_pk_to_gcry (pubkey_algo_t algo)
|
||||
case PUBKEY_ALGO_EDDSA: return GCRY_PK_EDDSA;
|
||||
case PUBKEY_ALGO_ECDSA: return GCRY_PK_ECDSA;
|
||||
case PUBKEY_ALGO_ECDH: return GCRY_PK_ECDH;
|
||||
default: return algo < 110 ? algo : 0;
|
||||
default: return algo < 110 ? (enum gcry_pk_algos)algo : 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2196,7 +2196,7 @@ get_dns_srv (ctrl_t ctrl,
|
||||
(*list)[j].run_count=prio_count;
|
||||
}
|
||||
|
||||
chose=prio_count*rand()/RAND_MAX;
|
||||
chose=prio_count*rand()/(float)RAND_MAX;
|
||||
|
||||
for (j=i;j<srvcount && (*list)[i].priority==(*list)[j].priority;j++)
|
||||
{
|
||||
|
@ -955,7 +955,7 @@ parse_keyserver_line (char *line,
|
||||
int
|
||||
main ( int argc, char **argv)
|
||||
{
|
||||
gpg_error_t err;
|
||||
gpg_error_t err = 0;
|
||||
gpgrt_argparse_t pargs;
|
||||
int orig_argc;
|
||||
char **orig_argv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user