Server_List_Load() - make c an int instead of a char so it can be compared

against EOF without warnings on certain platforms
This commit is contained in:
Loring Holden 2000-05-06 00:51:13 +00:00
parent 079daee12a
commit 03391673eb

View file

@ -82,8 +82,8 @@ int Server_List_Set(int i,char *addr,char *desc) {
int Server_List_Load (QFile *f) { // This could get messy
int serv = 0;
char line[256]; // Long lines get truncated.
char c = ' ';
char line[256]; /* Long lines get truncated. */
int c = ' '; /* int so it can be compared to EOF properly*/
char *start;
int len;
int i;