aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2017-11-06 21:20:45 -0500
committerTaylor Holberton <taylorcholberton@gmail.com>2017-11-06 21:20:45 -0500
commitadb12103ab9a58b684308a377f5440e95bf7daaa (patch)
tree39b67b232ad717b3fb58743b4db78b41f0e7c1a6
parentdbc2b7ba0869a4b3b0f5942e7eccea4ac7b993fb (diff)
fixed short option in tinyplay
-rw-r--r--utils/tinyplay.c2
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;