Commit 4f72c4dded904e77b68b14a80a749add1ec2992b

Authored by Blue Swirl
1 parent 3e3cabcf

Fix signedness problems

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing 1 changed file with 3 additions and 3 deletions
hw/baum.c
... ... @@ -90,7 +90,7 @@ typedef struct {
90 90  
91 91 brlapi_handle_t *brlapi;
92 92 int brlapi_fd;
93   - int x, y;
  93 + unsigned int x, y;
94 94  
95 95 uint8_t in_buf[BUF_SIZE];
96 96 uint8_t in_buf_used;
... ... @@ -356,12 +356,12 @@ static int baum_eat_packet(BaumDriverState *baum, const uint8_t *buf, int len)
356 356 .displayNumber = BRLAPI_DISPLAY_DEFAULT,
357 357 .regionBegin = 1,
358 358 .regionSize = baum->x * baum->y,
359   - .text = text,
  359 + .text = (char *)text,
360 360 .textSize = baum->x * baum->y,
361 361 .andMask = zero,
362 362 .orMask = cells,
363 363 .cursor = cursor,
364   - .charset = "ISO-8859-1",
  364 + .charset = (char *)"ISO-8859-1",
365 365 };
366 366  
367 367 if (brlapi__write(baum->brlapi, &wa) == -1)
... ...