aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-12-22 12:17:32 -0800
committerJunio C Hamano <gitster@pobox.com>2014-12-22 12:17:32 -0800
commit8d5134399c8f87d57b7199b8886f7aa8169e3df5 (patch)
tree44e70e8c0bc7d085eccc16163b9292240f5acf2c
parente8c23511578fc0c708eb50899e294da454420ac6 (diff)
parent31a8aa1ee84f4fba7597b0fa2e99f94596c079bb (diff)
downloadgit-8d5134399c8f87d57b7199b8886f7aa8169e3df5.tar.gz
git-8d5134399c8f87d57b7199b8886f7aa8169e3df5.tar.xz
Merge branch 'rs/receive-pack-use-labs' into maint
* rs/receive-pack-use-labs: use labs() for variables of type long instead of abs()
-rw-r--r--builtin/receive-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index 32fc540ef..e908d079b 100644
--- a/builtin/receive-pack.c
+++ b/builtin/receive-pack.c
@@ -431,7 +431,7 @@ static const char *check_nonce(const char *buf, size_t len)
nonce_stamp_slop = (long)ostamp - (long)stamp;
if (nonce_stamp_slop_limit &&
- abs(nonce_stamp_slop) <= nonce_stamp_slop_limit) {
+ labs(nonce_stamp_slop) <= nonce_stamp_slop_limit) {
/*
* Pretend as if the received nonce (which passes the
* HMAC check, so it is not a forged by third-party)