Commit e6fa6cde authored by Jeff King's avatar Jeff King Committed by Junio C Hamano

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: default avatarJeff King <peff@peff.net>
Signed-off-by: Ben Toews's avatarBen Toews <mastahyeti@gmail.com>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent f80bee27
......@@ -101,7 +101,7 @@ void print_signature_buffer(const struct signature_check *sigc, unsigned flags)
fputs(output, stderr);
}
size_t parse_signature(const char *buf, unsigned long size)
size_t parse_signature(const char *buf, size_t size)
{
char *eol;
size_t len = 0;
......
......@@ -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 *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment