summaryrefslogtreecommitdiffstats
path: root/gpg-interface.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-04-13 15:18:32 -0600
committerJunio C Hamano <gitster@pobox.com>2018-04-16 14:15:03 +0900
commite6fa6cde5bec648f1b8fd7e3f9e5939c5093985a (patch)
tree50296a640d9749b944379c90f6d4a39cba1744b8 /gpg-interface.h
parentf80bee27e3c3fc9085427945f97a2f7756500ea9 (diff)
downloadgit-e6fa6cde5bec648f1b8fd7e3f9e5939c5093985a.tar.gz
git-e6fa6cde5bec648f1b8fd7e3f9e5939c5093985a.tar.xz
gpg-interface: use size_t for signature buffer size
Even though our object sizes (from which these buffers would come) are typically "unsigned long", this is something we'd like to eventually fix (since it's only 32-bits even on 64-bit Windows). It makes more sense to use size_t when taking an in-memory buffer. 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>
Diffstat (limited to 'gpg-interface.h')
-rw-r--r--gpg-interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpg-interface.h b/gpg-interface.h
index 2c40a9175..a5e6517ae 100644
--- a/gpg-interface.h
+++ b/gpg-interface.h
@@ -31,7 +31,7 @@ void signature_check_clear(struct signature_check *sigc);
* offset where the embedded detached signature begins, or the end of
* the data when there is no such signature.
*/
-size_t parse_signature(const char *buf, unsigned long size);
+size_t parse_signature(const char *buf, size_t size);
void parse_gpg_output(struct signature_check *);