Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/receive-pack-use-labs'
author
Junio C Hamano
<gitster@pobox.com>
Fri, 5 Dec 2014 19:42:53 +0000
(11:42 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 5 Dec 2014 19:42:54 +0000
(11:42 -0800)
* rs/receive-pack-use-labs:
use labs() for variables of type long instead of abs()
builtin/receive-pack.c
patch
|
blob
|
history
raw
(from parent 1:
8aae35f
)
diff --git
a/builtin/receive-pack.c
b/builtin/receive-pack.c
index 32fc540ef3ddfc4d1bb33ae75a0e07b555bdc441..e908d079bae83884cc218cf6a39d3ed705cf439b 100644
(file)
--- 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) {
+
l
abs(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)