aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-03-15 09:24:50 +0100
committerTakashi Iwai <tiwai@suse.de>2010-03-15 09:25:25 +0100
commitfffa6d1f526e8d52ad5807050a8052a6718381f5 (patch)
tree4af4140f7f820ed52c30ea039ce3d2e5a9ee3f56
parent42dd2b84891fdcb1f4a0e7b991dcf7ff9acd019c (diff)
downloadalsa-driver-build-unstable-fffa6d1f526e8d52ad5807050a8052a6718381f5.tar.gz
Add choice/endchoice pair to mod-deps
Ignore the content, so far, as a quick'n'dirty workaround. This should be fixed in future! Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--utils/mod-deps.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/mod-deps.c b/utils/mod-deps.c
index 5f312cfc2..e30a9f1cc 100644
--- a/utils/mod-deps.c
+++ b/utils/mod-deps.c
@@ -221,6 +221,7 @@ static char *no_cards[] = {
#define READ_STATE_CONFIG 1
#define READ_STATE_MENU 2
#define READ_STATE_COMMENT 3
+#define READ_STATE_CHOICE 4
static void nomem(void)
{
@@ -395,6 +396,13 @@ static int read_file_1(const char *filename, struct cond **template)
} else if (!strncmp(buffer, "comment", 7)) {
state = READ_STATE_COMMENT;
continue;
+ } else if (!strncmp(buffer, "choice", 6)) {
+ state = READ_STATE_CHOICE;
+ /* FXIME: what to do? */
+ continue;
+ } else if (!strncmp(buffer, "endchoice", 9)) {
+ state = READ_STATE_NONE;
+ continue;
}
switch (state) {
case READ_STATE_CONFIG: