Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
tag.c: use 'ref-filter' APIs
[gitweb.git]
/
strbuf.c
diff --git
a/strbuf.c
b/strbuf.c
index e5e73700924e7a832424747edbb47988af7c2390..cce5eed14a4cc53d3b7d04cb8a14ea8aa9f69e52 100644
(file)
--- a/
strbuf.c
+++ b/
strbuf.c
@@
-526,9
+526,10
@@
int strbuf_getwholeline_fd(struct strbuf *sb, int fd, int term)
return 0;
}
-
in
t strbuf_read_file(struct strbuf *sb, const char *path, size_t hint)
+
ssize_
t strbuf_read_file(struct strbuf *sb, const char *path, size_t hint)
{
- int fd, len;
+ int fd;
+ ssize_t len;
fd = open(path, O_RDONLY);
if (fd < 0)