Fix some functions not returning the right type.

This commit is contained in:
John "Elwin" Edwards 2016-03-19 16:18:58 -04:00
parent 2e20820d1b
commit 2d4a66298a
6 changed files with 17 additions and 4 deletions

View file

@ -1813,6 +1813,8 @@ rs_write_traps(FILE *savef, struct trap *trap,int count)
rs_write_coord(savef, trap[n].tr_pos);
rs_write_long(savef, trap[n].tr_flags);
}
return (WRITESTAT);
}
int
@ -2310,7 +2312,7 @@ rs_read_thing_list(int inf, struct linked_list **list)
return(READSTAT);
}
int
void
rs_fix_thing_list(struct linked_list *list)
{
struct linked_list *item;

View file

@ -1941,6 +1941,7 @@ rs_write_traps(FILE *savef, struct trap *trap,int count)
rs_write_coord(savef, trap[n].tr_pos);
rs_write_long(savef, trap[n].tr_flags);
}
return (WRITESTAT);
}
int
@ -2431,7 +2432,7 @@ rs_read_thing_list(int inf, struct linked_list **list)
return(READSTAT);
}
int
void
rs_fix_thing_list(struct linked_list *list)
{
struct linked_list *item;

View file

@ -902,6 +902,8 @@ rs_write_window(FILE *savef, WINDOW *win)
for(row=0;row<height;row++)
for(col=0;col<width;col++)
rs_write_int(savef, mvwinch(win,row,col));
return(WRITESTAT);
}
int
@ -1554,7 +1556,7 @@ rs_fix_thing(THING *t)
}
}
int
void
rs_fix_thing_list(THING *list)
{
THING *item;

View file

@ -357,6 +357,7 @@ hungdam(void)
when F_WEAK: return -1;
when F_FAINT: return -2;
}
return 0;
}
/*

View file

@ -925,6 +925,8 @@ rs_write_window(FILE *savef, WINDOW *win)
for(row=0;row<height;row++)
for(col=0;col<width;col++)
rs_write_int(savef, mvwinch(win,row,col));
return(WRITESTAT);
}
int
@ -1381,6 +1383,8 @@ rs_write_monster_references(FILE *savef, struct monster *marray[], int count)
for(i = 0; i < count; i++)
rs_write_monster_reference(savef, marray[i]);
return(WRITESTAT);
}
int
@ -1390,6 +1394,8 @@ rs_read_monster_references(int inf, struct monster *marray[], int count)
for(i = 0; i < count; i++)
rs_read_monster_reference(inf, &marray[i]);
return(READSTAT);
}
int
@ -1560,6 +1566,7 @@ rs_write_traps(FILE *savef, struct trap *trap,int count)
rs_write_int(savef, trap[n].tr_flags);
rs_write_char(savef, trap[n].tr_type);
}
return (WRITESTAT);
}
int

View file

@ -755,7 +755,7 @@ find_most_pcs_matches(struct sc_ent top_ten[NUMSCORE], struct sc_ent *sc,
}
int
void
add_score(struct sc_ent top_ten[NUMSCORE], struct sc_ent *sc)
{
int idx, count;