Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : echo

Dir     : e_modules/echo/src


Modified Files:
        e_mod_alsa.c 


Log Message:
Fix compiler warning. snd_ctl_card_info_get_name returns a const char.

===================================================================
RCS file: /cvs/e/e_modules/echo/src/e_mod_alsa.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_alsa.c        14 Jan 2008 20:17:24 -0000      1.4
+++ e_mod_alsa.c        14 Jan 2008 20:19:59 -0000      1.5
@@ -43,7 +43,7 @@
    snd_ctl_card_info_alloca(&hw_info);
    for (i = 0; i < 32; i++)
      {
-       char *name = NULL;
+       const char *name = NULL;
        
        snprintf(buf, sizeof(buf), "hw:%d", i);
        if ((err = snd_ctl_open(&control, buf, 0)) < 0) break;
@@ -57,10 +57,7 @@
        snd_ctl_close(control);
        name = snd_ctl_card_info_get_name(hw_info);
        if (name)
-         {
-            cards = evas_list_append(cards, evas_stringshare_add(name));
-             free(name);
-         }
+          cards = evas_list_append(cards, evas_stringshare_add(name));
      }
 
    return cards;



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to