Fix various departures from C found by `gcc -ansi -pedantic'. I

haven't checked in Makefile changes to enable this, but I'll at
least fix the specific problems it found when enabled as a one-off.

[originally from svn r5902]
This commit is contained in:
Simon Tatham
2005-06-02 08:14:14 +00:00
parent 09c396b8a8
commit ad2ec32e1c
5 changed files with 28 additions and 26 deletions

2
net.c
View File

@ -120,7 +120,7 @@ static int xyd_cmp(const void *av, const void *bv) {
if (a->direction > b->direction)
return +1;
return 0;
};
}
static int xyd_cmp_nc(void *av, void *bv) { return xyd_cmp(av, bv); }