]> git.alsa-project.org Git - alsa-utils.git/commitdiff
- fixed compile warnings on gcc3.3.
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Feb 2003 16:03:36 +0000 (16:03 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 4 Feb 2003 16:03:36 +0000 (16:03 +0000)
alsamixer/alsamixer.c
amixer/amixer.c

index ce8ad8e7283c7baf3dbe69ac03a6f85c044d47f4..7ea323866473c31270c7f7a3a0cd5c892fdb5662 100644 (file)
@@ -983,7 +983,7 @@ mixer_draw_frame (void)
   mixer_dc (DC_TEXT);
   sprintf (string, "%s", mixer_card_name);
   max_len = mixer_max_x - 2 - 6 - 2;
-  if (strlen (string) > max_len)
+  if ((int)strlen (string) > max_len)
     string[max_len] = 0;
   addstr (string);
   
@@ -994,7 +994,7 @@ mixer_draw_frame (void)
   mixer_dc (DC_TEXT);
   sprintf (string, "%s", mixer_device_name);
   max_len = mixer_max_x - 2 - 6 - 2;
-  if (strlen (string) > max_len)
+  if ((int)strlen (string) > max_len)
     string[max_len] = 0;
   addstr (string);
 
@@ -1088,7 +1088,8 @@ mixer_show_text (char *title,
   float hoffs, voffs;
   char *p, *text_offs = text;
   int x1, x2, y1, y2;
-  int i, n, l, r, block, stipple;
+  int i, n, l, r;
+  unsigned long block, stipple;
 
   /* coords
    */
index 1b12eed9fb55a65cfc06e17b702fc0922df4cb6e..46c3d43f10c1da8e8f9b4f1a27d05cd435175a79 100644 (file)
@@ -836,7 +836,7 @@ static int parse_control_id(const char *str, snd_ctl_elem_id_t *id)
                        if (*str == '\'' || *str == '\"') {
                                c = *str++;
                                while (*str && *str != c) {
-                                       if (size < sizeof(buf)) {
+                                       if (size < (int)sizeof(buf)) {
                                                *ptr++ = *str;
                                                size++;
                                        }
@@ -846,7 +846,7 @@ static int parse_control_id(const char *str, snd_ctl_elem_id_t *id)
                                        str++;
                        } else {
                                while (*str && *str != ',') {
-                                       if (size < sizeof(buf)) {
+                                       if (size < (int)sizeof(buf)) {
                                                *ptr++ = *str;
                                                size++;
                                        }
@@ -894,7 +894,7 @@ static int parse_simple_id(const char *str, snd_mixer_selem_id_t *sid)
        size = 1;       /* for '\0' */
        if (*str != '"' && *str != '\'') {
                while (*str && *str != ',') {
-                       if (size < sizeof(buf)) {
+                       if (size < (int)sizeof(buf)) {
                                *ptr++ = *str;
                                size++;
                        }
@@ -903,7 +903,7 @@ static int parse_simple_id(const char *str, snd_mixer_selem_id_t *sid)
        } else {
                c = *str++;
                while (*str && *str != c) {
-                       if (size < sizeof(buf)) {
+                       if (size < (int)sizeof(buf)) {
                                *ptr++ = *str;
                                size++;
                        }