diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2017-11-06 21:20:45 -0500 |
---|---|---|
committer | Taylor Holberton <taylorcholberton@gmail.com> | 2017-11-06 21:20:45 -0500 |
commit | adb12103ab9a58b684308a377f5440e95bf7daaa (patch) | |
tree | 39b67b232ad717b3fb58743b4db78b41f0e7c1a6 | |
parent | dbc2b7ba0869a4b3b0f5942e7eccea4ac7b993fb (diff) |
fixed short option in tinyplay
-rw-r--r-- | utils/tinyplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/tinyplay.c b/utils/tinyplay.c index ea7e115..bd79eff 100644 --- a/utils/tinyplay.c +++ b/utils/tinyplay.c @@ -97,7 +97,7 @@ int cmd_parse_arg(struct cmd *cmd, int argc, const char **argv) fprintf(stderr, "failed parsing period size '%s'\n", argv[1]); return -1; } - } else if ((strcmp(argv[0], "-p") == 0) || (strcmp(argv[0], "--period-count") == 0)) { + } else if ((strcmp(argv[0], "-n") == 0) || (strcmp(argv[0], "--period-count") == 0)) { if (sscanf(argv[1], "%u", &cmd->config.period_count) != 1) { fprintf(stderr, "failed parsing period count '%s'\n", argv[1]); return -1; |