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,7 +90,7 @@ typedef struct {
90 90
91 brlapi_handle_t *brlapi; 91 brlapi_handle_t *brlapi;
92 int brlapi_fd; 92 int brlapi_fd;
93 - int x, y; 93 + unsigned int x, y;
94 94
95 uint8_t in_buf[BUF_SIZE]; 95 uint8_t in_buf[BUF_SIZE];
96 uint8_t in_buf_used; 96 uint8_t in_buf_used;
@@ -356,12 +356,12 @@ static int baum_eat_packet(BaumDriverState *baum, const uint8_t *buf, int len) @@ -356,12 +356,12 @@ static int baum_eat_packet(BaumDriverState *baum, const uint8_t *buf, int len)
356 .displayNumber = BRLAPI_DISPLAY_DEFAULT, 356 .displayNumber = BRLAPI_DISPLAY_DEFAULT,
357 .regionBegin = 1, 357 .regionBegin = 1,
358 .regionSize = baum->x * baum->y, 358 .regionSize = baum->x * baum->y,
359 - .text = text, 359 + .text = (char *)text,
360 .textSize = baum->x * baum->y, 360 .textSize = baum->x * baum->y,
361 .andMask = zero, 361 .andMask = zero,
362 .orMask = cells, 362 .orMask = cells,
363 .cursor = cursor, 363 .cursor = cursor,
364 - .charset = "ISO-8859-1", 364 + .charset = (char *)"ISO-8859-1",
365 }; 365 };
366 366
367 if (brlapi__write(baum->brlapi, &wa) == -1) 367 if (brlapi__write(baum->brlapi, &wa) == -1)