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:
parent
e367c05620
commit
cd749a7652
@ -119,8 +119,8 @@ typedef struct
|
||||
{
|
||||
int status; /* status of child */
|
||||
char msg[128]; /* error message */
|
||||
int row; /* terminal rows */
|
||||
int col; /* Terminal columns */
|
||||
unsigned short row; /* terminal rows */
|
||||
unsigned short col; /* Terminal columns */
|
||||
} handshake_t;
|
||||
|
||||
/* status of handshake */
|
||||
|
Loading…
Reference in New Issue
Block a user