Changeset 36e9cd1 in mainline for uspace/srv/hid/fb/serial_console.c
- Timestamp:
- 2010-02-10T23:15:27Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0701066
- Parents:
- 3149fc0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/serial_console.c
r3149fc0 r36e9cd1 57 57 void serial_putchar(wchar_t ch); 58 58 59 static int scr_width;60 static int scr_height;59 static unsigned int scr_width; 60 static unsigned int scr_height; 61 61 static bool color = true; /** True if producing color output. */ 62 62 static bool utf8 = false; /** True if producing UTF8 output. */ … … 108 108 void serial_putchar(wchar_t ch) 109 109 { 110 uint8_tbuf[STR_BOUNDS(1)];110 char buf[STR_BOUNDS(1)]; 111 111 size_t offs; 112 112 size_t i; … … 294 294 } 295 295 296 int lastcol = 0;297 int lastrow = 0;296 unsigned int lastcol = 0; 297 unsigned int lastrow = 0; 298 298 299 299 /** … … 309 309 310 310 wchar_t c; 311 int col, row, w, h; 311 unsigned int col; 312 unsigned int row; 313 unsigned int w; 314 unsigned int h; 312 315 int i; 313 316 … … 358 361 break; 359 362 } 360 if ( col + w > scr_width || row + h > scr_height) {363 if ((col + w > scr_width) || (row + h > scr_height)) { 361 364 retval = EINVAL; 362 365 break; … … 424 427 case FB_SCROLL: 425 428 i = IPC_GET_ARG1(call); 426 if ((i > scr_height) || (i < -scr_height)) {429 if ((i > (int) scr_height) || (i < -((int) scr_height))) { 427 430 retval = EINVAL; 428 431 break;
Note:
See TracChangeset
for help on using the changeset viewer.