L3GD20: Fix usage function call to fit existing structure.

This commit is contained in:
Lorenz Meier 2014-07-08 13:52:42 +02:00
parent 875be65242
commit 812d326912
1 changed files with 6 additions and 6 deletions

View File

@ -982,7 +982,7 @@ namespace l3gd20
L3GD20 *g_dev; L3GD20 *g_dev;
void l3gd20_usage(); void usage();
void start(bool external_bus, enum Rotation rotation); void start(bool external_bus, enum Rotation rotation);
void test(); void test();
void reset(); void reset();
@ -1120,17 +1120,17 @@ info()
exit(0); exit(0);
} }
} // namespace
void void
l3gd20_usage() usage()
{ {
warnx("missing command: try 'start', 'info', 'test', 'reset'"); warnx("missing command: try 'start', 'info', 'test', 'reset'");
warnx("options:"); warnx("options:");
warnx(" -X (external bus)"); warnx(" -X (external bus)");
warnx(" -R rotation");
} }
} // namespace
int int
l3gd20_main(int argc, char *argv[]) l3gd20_main(int argc, char *argv[])
{ {
@ -1148,7 +1148,7 @@ l3gd20_main(int argc, char *argv[])
rotation = (enum Rotation)atoi(optarg); rotation = (enum Rotation)atoi(optarg);
break; break;
default: default:
l3gd20_usage(); l3gd20::usage();
exit(0); exit(0);
} }
} }