Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
various: tighten constness of some local variables
[gitweb.git]
/
remote-curl.c
diff --git
a/remote-curl.c
b/remote-curl.c
index 91b39ca0988c154a576f753179c79628d2305435..6ff9c66b90bab5d5e8d45b5baeff99143196b7cd 100644
(file)
--- a/
remote-curl.c
+++ b/
remote-curl.c
@@
-632,7
+632,8
@@
static int probe_rpc(struct rpc_state *rpc, struct slot_results *results)
return err;
}
-static curl_off_t xcurl_off_t(size_t len) {
+static curl_off_t xcurl_off_t(size_t len)
+{
uintmax_t size = len;
if (size > maximum_signed_value_of_type(curl_off_t))
die("cannot handle pushes this big");