diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-12-05 11:42:53 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-12-05 11:42:54 -0800 |
commit | 0e0252b75573a98640eb8754467d00697f1ee117 (patch) | |
tree | 4346ebe08be22d9d0ab872b942ced1708039fe80 /builtin/receive-pack.c | |
parent | 8aae35f658716fe07d4d5769e351972caffc6e23 (diff) | |
parent | 31a8aa1ee84f4fba7597b0fa2e99f94596c079bb (diff) | |
download | git-0e0252b75573a98640eb8754467d00697f1ee117.tar.gz git-0e0252b75573a98640eb8754467d00697f1ee117.tar.xz |
Merge branch 'rs/receive-pack-use-labs'
* rs/receive-pack-use-labs:
use labs() for variables of type long instead of abs()
Diffstat (limited to 'builtin/receive-pack.c')
-rw-r--r-- | builtin/receive-pack.c | 2 |
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) |