Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Teach tree_entry_interesting() that the tree entries are sorted.
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 33b68e463cb17b99de23b731ff47d40d7959c93e..7534db1267bfa64a4a0cba80680fefc42177f0e8 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-258,6
+258,11
@@
static inline ssize_t xwrite(int fd, const void *buf, size_t len)
}
}
+static inline size_t xsize_t(off_t len)
+{
+ return (size_t)len;
+}
+
static inline int has_extension(const char *filename, const char *ext)
{
size_t len = strlen(filename);