gpg-interface: fix const-correctness of "eol" pointer
commit17ef3a421e0a1019592a0b14b95f09df61730071
authorJeff King <peff@peff.net>
Fri, 13 Apr 2018 21:18:33 +0000 (13 15:18 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Apr 2018 05:15:03 +0000 (16 14:15 +0900)
tree455f977598f0a91ea39a9d1ac748b2bf9cf88d94
parente6fa6cde5bec648f1b8fd7e3f9e5939c5093985a
gpg-interface: fix const-correctness of "eol" pointer

We accidentally shed the "const" of our buffer by passing it
through memchr. Let's fix that, and while we're at it, move
our variable declaration inside the loop, which is the only
place that uses it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Ben Toews <mastahyeti@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gpg-interface.c