summaryrefslogtreecommitdiff
path: root/console-client/driver.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/driver.c
parent8fa843fb18e9a934e746dffaebca66670c603967 (diff)
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/driver.c')
-rw-r--r--console-client/driver.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/console-client/driver.c b/console-client/driver.c
index 74df1907..5c4630a0 100644
--- a/console-client/driver.c
+++ b/console-client/driver.c
@@ -65,7 +65,7 @@ driver_init (void)
error_t
driver_fini (void)
{
- int i;
+ unsigned int i;
mutex_lock (&driver_list_lock);
for (i = 0; i < driver_list_len; i++)
@@ -96,7 +96,7 @@ error_t driver_add (const char *const name, const char *const driver,
char *modname;
void *shobj = NULL;
driver_t drv;
- int i;
+ unsigned int i;
char *dir = driver_path;
int defpath = 0;
@@ -242,7 +242,7 @@ error_t
driver_start (char **name)
{
error_t err = 0;
- int i;
+ unsigned int i;
mutex_lock (&driver_list_lock);
for (i = 0; i < driver_list_len; i++)
@@ -268,7 +268,7 @@ driver_start (char **name)
error_t driver_remove (const char *const name)
{
error_t err;
- int i;
+ unsigned int i;
mutex_lock (&driver_list_lock);
for (i = 0; i < driver_list_len; i++)
@@ -330,7 +330,7 @@ driver_add_##component (component##_ops_t ops, void *handle) \
error_t \
driver_remove_##component (component##_ops_t ops, void *handle) \
{ \
- int i; \
+ unsigned int i; \
\
mutex_lock (&component##_list_lock); \
for (i = 0; i < component##_list_len; i++) \