Skip to content

Commit

Permalink
fixing various warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jul 18, 2021
1 parent f424b38 commit bba7488
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//for easier access

#ifndef CONFIG_H
#define CONFIG_H
//the default scorefiles
#ifndef SCORES_DIR
#ifdef Plan9
Expand Down Expand Up @@ -54,3 +55,5 @@ typedef signed char byte;
#ifndef M_PI //i don't know why tf, but it happens
#define M_PI 3.1415
#endif

#endif //CONFIG_H
4 changes: 1 addition & 3 deletions miketron.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,7 @@ int main(int argc, char** argv){
#endif
srand(time(NULL)%UINT_MAX);
byte board[len][wid];
int prex,prey;
bool halfspeed=0;
const int constant=150*(80*24)/(len*wid);//that is added to score
initscr();
noecho();
cbreak();
Expand Down Expand Up @@ -388,7 +386,7 @@ int main(int argc, char** argv){
memset(board,0,len*wid);
put_stuff(board,20);

int preinput,input;
int preinput=0,input=0;
while(1){
erase();
logo();
Expand Down
1 change: 0 additions & 1 deletion redsquare.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ int main(void){
}
byte board[RLEN][RWID];
memset(board,0,RLEN*RWID);
char result[70];
int input=0;
int prey,prex;
int cinred;
Expand Down

0 comments on commit bba7488

Please sign in to comment.