From 98fceb5f56fb2432de7fbc21566de2d53cde553d Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Thu, 29 Mar 2001 09:10:47 +0000 Subject: [PATCH] More documentation. Added mode argument to i/o_stdio_open. --- alsactl/alsactl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alsactl/alsactl.c b/alsactl/alsactl.c index 3c29428..29ed44e 100644 --- a/alsactl/alsactl.c +++ b/alsactl/alsactl.c @@ -926,7 +926,7 @@ static int save_state(char *file, const char *cardname) return err; } stdio = !strcmp(file, "-"); - if (!stdio && (err = snd_input_stdio_open(&in, file)) >= 0) { + if (!stdio && (err = snd_input_stdio_open(&in, file, "r")) >= 0) { err = snd_config_load(config, in); snd_input_close(in); #if 0 @@ -972,7 +972,7 @@ static int save_state(char *file, const char *cardname) if (stdio) err = snd_output_stdio_attach(&out, stdout, 0); else - err = snd_output_stdio_open(&out, file); + err = snd_output_stdio_open(&out, file, "w"); if (err < 0) { error("Cannot open %s for writing", file); return -errno; @@ -1001,7 +1001,7 @@ static int load_state(char *file, const char *cardname) if (stdio) err = snd_input_stdio_attach(&in, stdin, 0); else - err = snd_input_stdio_open(&in, file); + err = snd_input_stdio_open(&in, file, "r"); if (err >= 0) { err = snd_config_load(config, in); snd_input_close(in); -- 2.47.1