aboutsummaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorSami Farin <safari-kernel@safari.iki.fi>2007-04-24 22:56:02 +0300
committerShawn O. Pearce <spearce@spearce.org>2007-04-24 16:14:48 -0400
commit00be8dcc1aca3c1c1a94b39f0563d30d1fa89290 (patch)
tree3b39c5f182270c90e97f937b034d306b2a8a73e5 /fast-import.c
parent46f6178a3f4e7a5bf8b47da0f3cc5c998d907ce8 (diff)
downloadgit-00be8dcc1aca3c1c1a94b39f0563d30d1fa89290.tar.gz
git-00be8dcc1aca3c1c1a94b39f0563d30d1fa89290.tar.xz
fast-import: size_t vs ssize_t
size_t is unsigned, so (n < 0) is never true. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fast-import.c b/fast-import.c
index e3290df3d..c4c8cb905 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -673,7 +673,7 @@ static void fixup_header_footer(void)
buf = xmalloc(buf_sz);
for (;;) {
- size_t n = xread(pack_fd, buf, buf_sz);
+ ssize_t n = xread(pack_fd, buf, buf_sz);
if (!n)
break;
if (n < 0)