Use size_t for number of lines in linebuf

.nlines and .capacity are used as array indices and
should therefore be of type size_t.
This commit is contained in:
Jakob Kramer
2015-01-31 20:57:29 +01:00
committed by sin
parent 0934e7f6ed
commit 4769b47dd7
3 changed files with 9 additions and 11 deletions

2
sort.c
View File

@@ -52,7 +52,7 @@ usage(void)
int
main(int argc, char *argv[])
{
long i;
size_t i;
FILE *fp;
struct linebuf linebuf = EMPTY_LINEBUF;
int global_flags = 0;