Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
use a LRU eviction policy for the delta base cache
[gitweb.git]
/
dir.c
diff --git
a/dir.c
b/dir.c
index 32b57f0125d1b9e95345eb23a9a32fbf8444b1b8..b48e19dc09fff7d7fb1d5b48673fe4448b69a7c3 100644
(file)
--- a/
dir.c
+++ b/
dir.c
@@
-130,13
+130,13
@@
static int add_excludes_from_file_1(const char *fname,
{
struct stat st;
int fd, i;
-
long
size;
+
size_t
size;
char *buf, *entry;
fd = open(fname, O_RDONLY);
if (fd < 0 || fstat(fd, &st) < 0)
goto err;
- size =
st.st_size
;
+ size =
xsize_t(st.st_size)
;
if (size == 0) {
close(fd);
return 0;