X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=receive-pack.c;h=dfa7cd1d0a81eade8225e11dc0f2b97682a905c0;hb=bce6286670c6735d0ca2fdf582047e0388dfcd84;hp=53d00a5e7a275957432ffd999d135bd040f89940;hpb=8a65ff7666db1299449a397bab3d39d74b82aa54;p=git.git diff --git a/receive-pack.c b/receive-pack.c index 53d00a5e..dfa7cd1d 100644 --- a/receive-pack.c +++ b/receive-pack.c @@ -7,7 +7,7 @@ static const char receive_pack_usage[] = "git-receive-pack "; static const char *unpacker = "git-unpack-objects"; -static int show_ref(const char *path, unsigned char *sha1) +static int show_ref(const char *path, const unsigned char *sha1) { packet_write(1, "%s %s\n", sha1_to_hex(sha1), path); return 0; @@ -25,7 +25,7 @@ struct command { char ref_name[0]; }; -struct command *commands = NULL; +static struct command *commands = NULL; static int is_all_zeroes(const char *hex) {