fix some signed/unsigned warnings and style fixes

This commit is contained in:
Hiltjo Posthuma
2015-03-27 17:03:44 +01:00
parent 57dc7b94b0
commit a9bedca038
5 changed files with 7 additions and 6 deletions

4
nl.c
View File

@@ -46,8 +46,8 @@ getsection(char *buf, int *section)
static void
nl(const char *fname, FILE *fp)
{
size_t number = startnum, size = 0;
int donumber, oldsection, section = 1, bl = 1;
size_t number = startnum, size = 0, bl = 1;
int donumber, oldsection, section = 1;
char *buf = NULL;
while (getline(&buf, &size, fp) > 0) {