1
0
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:
twistdroach 2023-02-03 00:24:58 -05:00
parent 4d825748ed
commit 3fc638064a
5 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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();

View File

@ -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);

View File

@ -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+

2
trsr.c
View File

@ -33,7 +33,7 @@ char sides[2]={'h','h'};
chtype colors[6]={0};
int beginy,view_len;
int turn=0;
byte setup_scroll(){
void setup_scroll(){
beginy=0;
if(0<py+3-(LINES-EMPTY_LINES)){
beginy=py+3-(LINES-EMPTY_LINES);