summaryrefslogtreecommitdiffstats
path: root/g10/build-packet.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-11-15 09:23:40 +0100
committerWerner Koch <wk@gnupg.org>2013-11-15 15:49:34 +0100
commita0102a548d0e2ed2fce74ba4a21adf26bc352641 (patch)
treec41e31e39f8c57fecc6dedeafb35b59a541d80d8 /g10/build-packet.c
parentgpg: Rework ECC support and add experimental support for Ed25519. (diff)
downloadgnupg2-a0102a548d0e2ed2fce74ba4a21adf26bc352641.tar.xz
gnupg2-a0102a548d0e2ed2fce74ba4a21adf26bc352641.zip
Fix minor compiler warnings.
--
Diffstat (limited to 'g10/build-packet.c')
-rw-r--r--g10/build-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c
index 6681b3429..b4514aebb 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -331,7 +331,7 @@ do_key (iobuf_t out, int ctb, PKT_public_key *pk)
for (i=0; i < npkey; i++ )
{
if ((pk->pubkey_algo == PUBKEY_ALGO_ECDSA && (i == 0))
- || (pk->pubkey_algo == PUBKEY_ALGO_ECDH) && (i == 0 || i == 2))
+ || ((pk->pubkey_algo == PUBKEY_ALGO_ECDH) && (i == 0 || i == 2)))
err = gpg_mpi_write_nohdr (a, pk->pkey[i]);
else
err = gpg_mpi_write (a, pk->pkey[i]);