From: Elijah Newren Date: Wed, 5 Sep 2018 17:25:49 +0000 (-0700) Subject: update-ref: fix type of update_flags variable to match its usage X-Git-Tag: v2.20.0-rc0~206^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4c34855a26fccd2072d452390a0e3167bcc4da9;p=thirdparty%2Fgit.git update-ref: fix type of update_flags variable to match its usage The ref_transaction_*() family of functions expect a flags parameter which is of type unsigned int. Make the update_flags variable, which is passed as that parameter, be of the same type. Signed-off-by: Elijah Newren Signed-off-by: Junio C Hamano --- diff --git a/builtin/update-ref.c b/builtin/update-ref.c index 4fa3c0a86f..54fac01f21 100644 --- a/builtin/update-ref.c +++ b/builtin/update-ref.c @@ -14,7 +14,7 @@ static const char * const git_update_ref_usage[] = { }; static char line_termination = '\n'; -static int update_flags; +static unsigned int update_flags; static unsigned create_reflog_flag; static const char *msg;