alsa_write.c: make alsa_parse_config() static and change parameter to const
authorAndre Noll <maan@systemlinux.org>
Mon, 29 Jan 2007 22:12:00 +0000 (23:12 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 29 Jan 2007 22:12:00 +0000 (23:12 +0100)
alsa_cmdline_parser_string() which is generated by gengetopt takes a const
char *.

alsa_write.c

index 4510b97..793d16b 100644 (file)
@@ -212,7 +212,7 @@ static void alsa_close(struct writer_node *wn)
        free(pad);
 }
 
        free(pad);
 }
 
-__malloc void *alsa_parse_config(char *options)
+__malloc static void *alsa_parse_config(const char *options)
 {
        struct alsa_write_args_info *conf
                = para_calloc(sizeof(struct alsa_write_args_info));
 {
        struct alsa_write_args_info *conf
                = para_calloc(sizeof(struct alsa_write_args_info));