Browse Source

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>
maint
Sami Farin 18 years ago committed by Shawn O. Pearce
parent
commit
00be8dcc1a
  1. 2
      fast-import.c

2
fast-import.c

@ -673,7 +673,7 @@ static void fixup_header_footer(void) @@ -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)

Loading…
Cancel
Save