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 <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Sep 5, 2018 at 10:25 UTC
e4c34855a26fccd2072d452390a0e3167bcc4da9
1 file changed
+1
-1
builtin/update-ref.c
+1
-1
@@ -14,7 +14,7 @@ static const char * const git_update_ref_usage[] = {
14
};
15
16
static char line_termination = '\n';
17
-static int update_flags;
17
+static unsigned int update_flags;
18
static unsigned create_reflog_flag;
19
static const char *msg;
20