[PATCH 1/2] update-ref: fix type of update_flags variable to match its usage
- From
Elijah Newren <newren@gmail.com>
- Date
- Sep 5, 2018, 17:25 UTC
- Message-ID
- <20180905172550.11621-2-newren@gmail.com>
- In-Reply-To
- <20180905172550.11621-1-newren@gmail.com>
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> --- builtin/update-ref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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;
-- 2.19.0.rc2.2.g1aedc61e22