projects
/
platform
/
upstream
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 2.4.7
[platform/upstream/git.git]
/
strbuf.c
diff --git
a/strbuf.c
b/strbuf.c
index
88cafd4
..
b4da9f5
100644
(file)
--- a/
strbuf.c
+++ b/
strbuf.c
@@
-481,9
+481,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)