Explicitly declares variable types for ints

GCC 7 discourages implicit typing
This commit is contained in:
Colin Dean 2018-04-08 12:03:44 -04:00
parent a3f7e4765f
commit 9c8379c254

View File

@ -109,7 +109,7 @@ void border(void)
memset(ptr,0,BORDER*WIDTH); memset(ptr,0,BORDER*WIDTH);
} }
void cross(x,y) void cross(int x, int y)
{ {
unsigned char *ptr=ary+y*WIDTH+x; unsigned char *ptr=ary+y*WIDTH+x;
unsigned c; unsigned c;
@ -132,7 +132,7 @@ void crosses(void)
} }
/* x is in the range 0 to DATA_WIDTH-1 */ /* x is in the range 0 to DATA_WIDTH-1 */
void text_block (destx, srcx, width) void text_block (int destx, int srcx, int width)
{ {
int x, y; int x, y;
unsigned char *srcptr; unsigned char *srcptr;