Terminal: use unsigned short instead of int to avoid a narrowing conversion warning.
* unsigned short is the type used in the struct winsize.
This commit is contained in:
@@ -119,8 +119,8 @@ typedef struct
|
|||||||
{
|
{
|
||||||
int status; /* status of child */
|
int status; /* status of child */
|
||||||
char msg[128]; /* error message */
|
char msg[128]; /* error message */
|
||||||
int row; /* terminal rows */
|
unsigned short row; /* terminal rows */
|
||||||
int col; /* Terminal columns */
|
unsigned short col; /* Terminal columns */
|
||||||
} handshake_t;
|
} handshake_t;
|
||||||
|
|
||||||
/* status of handshake */
|
/* status of handshake */
|
||||||
|
|||||||
Reference in New Issue
Block a user