aboutsummaryrefslogtreecommitdiff
path: root/console-client/bdf.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2004-03-07 00:27:08 +0000
committerMarcus Brinkmann <marcus@gnu.org>2004-03-07 00:27:08 +0000
commitf60e8dc9ab2948e2ad70b6a347a0550c0d7a802d (patch)
tree43dda6e1700fa97f15becee31b4497cfb08df947 /console-client/bdf.c
parent8fa843fb18e9a934e746dffaebca66670c603967 (diff)
downloadhurd-f60e8dc9ab2948e2ad70b6a347a0550c0d7a802d.tar.gz
hurd-f60e8dc9ab2948e2ad70b6a347a0550c0d7a802d.tar.bz2
hurd-f60e8dc9ab2948e2ad70b6a347a0550c0d7a802d.zip
2004-03-07 Marco Gerards <metgerards@student.han.nl>
* bdf.c (bdf_read): Change the types of has_size, has_fbbx, has_metricset, glyph_has_encoding, glyph_has_bbx, glyph_bwidth, glyph_bheight and glyph_blines to unsigned int. * bell.h (struct bell_ops): Change the type of the argument KEY of the interface `deprecated' to unsigned int. All callers changed. * display.h (struct display_ops): Changed the type of the arguments width and height to unsigned int. All callers changed. * driver.c (driver_fini): Change the type of `i' to unsigned int to silence a gcc warning. (driver_start): Likewise. (driver_remove): Likewise. (ADD_REMOVE_COMPONENT): Likewise. (driver_add): Likewise. * generic-speaker.c (beep_on): Cup pitch at 20000, not 327677. Also silences a gcc warning. * ncursesw.c: Changed all calls to the function `ncurses_refresh' to `refresh_screen'. (current_width): Changed type to unsigned int. (current_height): Likewise. (padx): Likewise. (pady): Likewise. (refresh_screen): Cast LINES and COLS to unsigned int. (input_loop): Change `i' from int to unsigned int to silence a gcc warning. * vga.c (current_width): Changed type to unsigned int to silence a gcc warning. (current_heigh): Likewise. (struct vga_display): Changed the type of the members `width' and `height' to unsigned int to silence a gcc warning. (vga_display_change_font): Disabled the unused code for now.
Diffstat (limited to 'console-client/bdf.c')
-rw-r--r--console-client/bdf.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/console-client/bdf.c b/console-client/bdf.c
index 6c67c409..30501f4a 100644
--- a/console-client/bdf.c
+++ b/console-client/bdf.c
@@ -198,24 +198,24 @@ bdf_read (FILE *filep, bdf_font_t *font, int *linecount)
int glyphs;
/* True if we have seen a SIZE keyword so far. */
- int has_size : 1;
+ unsigned int has_size : 1;
/* True if we have seen a FONTBOUNDINGBOX keyword so far. */
- int has_fbbx : 1;
+ unsigned int has_fbbx : 1;
/* True if we have seen a METRICSSET keyword so far. */
- int has_metricsset : 1;
+ unsigned int has_metricsset : 1;
/* Current glyph. */
struct bdf_glyph *glyph;
/* True if we have seen an ENCODING keyword for the glyph. */
- int glyph_has_encoding : 1;
+ unsigned int glyph_has_encoding : 1;
/* True if we have seen an BBX keyword for the glyph. */
- int glyph_has_bbx : 1;
+ unsigned int glyph_has_bbx : 1;
/* Width of the glyph in bytes. */
- int glyph_bwidth;
+ unsigned int glyph_bwidth;
/* Height of the glyph in pixel. */
- int glyph_bheight;
+ unsigned int glyph_bheight;
/* How many bitmap lines have been parsed already. */
- int glyph_blines;
+ unsigned int glyph_blines;
} parser = { location: START, properties: 0, glyphs: 0,
has_size: 0, has_fbbx: 0 };