Skip to content

Commit

Permalink
jcat.c: Reformat help/usage output to be compatible with help2man.
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander GQ Gerasiov <gq@cs.msu.su>

Gbp-Pq: Name 0019-jcat.c-Reformat-help-usage-output-to-be-compatible-w.patch
  • Loading branch information
Alexander GQ Gerasiov authored and gerasiov committed Apr 27, 2020
1 parent 506252e commit c1fdfb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion j1939cat.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static const char help_msg[] =
"\n"
;

static const char optstring[] = "?i:vs:rp:P:R:";
static const char optstring[] = "?hi:vs:rp:P:R:";


static void j1939cat_init_sockaddr_can(struct sockaddr_can *sac)
Expand Down Expand Up @@ -617,6 +617,7 @@ static int j1939cat_parse_args(struct j1939cat_priv *priv, int argc, char *argv[
if (priv->repeat < 1)
err(EXIT_FAILURE, "send/repeat count can't be less then 1\n");
break;
case 'h': /*fallthrough*/
default:
fputs(help_msg, stderr);
return EXIT_FAILURE;
Expand Down

0 comments on commit c1fdfb0

Please sign in to comment.