mirror of
https://github.com/abakh/nbsdgames.git
synced 2024-11-02 16:27:18 -04:00
Fix some minor warnings from clang
This commit is contained in:
parent
4d825748ed
commit
3fc638064a
2
mines.c
2
mines.c
@ -29,7 +29,7 @@ int untouched;
|
||||
int mscount;
|
||||
chtype colors[6]={0};
|
||||
int beginy,view_len;
|
||||
byte setup_scroll(){
|
||||
void setup_scroll(){
|
||||
beginy=0;
|
||||
if(0<py+3-(LINES-EMPTY_LINES)){
|
||||
beginy=py+3-(LINES-EMPTY_LINES);
|
||||
|
@ -134,7 +134,7 @@ void green_border(void){
|
||||
}
|
||||
|
||||
|
||||
int show_scores(FILE* score_file){
|
||||
void show_scores(FILE* score_file){
|
||||
erase();
|
||||
filled_rect(0,0,LINES,COLS);
|
||||
green_border();
|
||||
|
@ -41,7 +41,7 @@ void logo(void){
|
||||
}
|
||||
|
||||
int beginy,view_len;
|
||||
byte setup_scroll(){
|
||||
void setup_scroll(){
|
||||
beginy=0;
|
||||
if(0<py+3-(LINES-EMPTY_LINES)){
|
||||
beginy=py+3-(LINES-EMPTY_LINES);
|
||||
|
4
sjump.c
4
sjump.c
@ -104,7 +104,7 @@ byte save_score(void){
|
||||
|
||||
void show_scores(byte playerrank){
|
||||
erase();
|
||||
logo(0,0);
|
||||
logo();
|
||||
if(playerrank==FOPEN_FAIL){
|
||||
mvaddstr(3,0,"Could not open score file");
|
||||
printw("\nHowever, your score is %ld.",score);
|
||||
@ -149,7 +149,7 @@ void show_scores(byte playerrank){
|
||||
nocbreak();
|
||||
cbreak();
|
||||
erase();
|
||||
logo(0,0);
|
||||
logo();
|
||||
}
|
||||
}
|
||||
//scorefile is still open with w+
|
||||
|
Loading…
Reference in New Issue
Block a user