1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-17 22:40:38 +02:00

tools/lib/atrf.c (select_driver): "default" selects the default driver

This commit is contained in:
Werner Almesberger 2011-04-19 23:37:44 -03:00
parent c4167d8df4
commit a15ab43b1c

View File

@ -123,9 +123,8 @@ static const struct atrf_driver *select_driver(const char *arg,
} }
*opt = NULL; *opt = NULL;
if (!arg) { if (!arg || !strcmp(arg, "default"))
return *drivers; return *drivers;
}
end = strchr(arg, ':'); end = strchr(arg, ':');
if (!end) if (!end)