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:
Jérôme Duval 2013-04-29 21:40:34 +02:00
parent e367c05620
commit cd749a7652

View File

@ -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 */