gpg: Avoid directly twiddling bits.
authorNeal H. Walfield <neal@g10code.com>
Thu, 25 Feb 2016 20:16:41 +0000 (21:16 +0100)
committerNeal H. Walfield <neal@g10code.com>
Thu, 25 Feb 2016 20:16:41 +0000 (21:16 +0100)
commit105a5629c7e938ec7b3c9c338ebe7bdfee4cfdad
tree49d1f524af4e72d8fdffe9dfb8895201f675c49d
parentb7b4a1bdd9da28827980c64c623bcb0654736828
gpg: Avoid directly twiddling bits.

* g10/build-packet.c (do_plaintext): Use ctb_new_format_p to check the
packet's format.
(write_header2): Likewise.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
g10/build-packet.c