Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Farin <safari-kernel@safari.iki.fi>2007-04-24 23:56:02 +0400
committerShawn O. Pearce <spearce@spearce.org>2007-04-25 00:14:48 +0400
commit00be8dcc1aca3c1c1a94b39f0563d30d1fa89290 (patch)
tree3b39c5f182270c90e97f937b034d306b2a8a73e5 /fast-import.c
parent46f6178a3f4e7a5bf8b47da0f3cc5c998d907ce8 (diff)
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 e3290df3d4..c4c8cb905e 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)