mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 22:40:03 +02:00
jcat.c: Reformat help/usage output to be compatible with help2man.
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
This commit is contained in:
committed by
Alexander Gerasiov
parent
506252e9bc
commit
c1fdfb09fc
+2
-1
@@ -84,7 +84,7 @@ static const char help_msg[] =
|
|||||||
"\n"
|
"\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)
|
static void j1939cat_init_sockaddr_can(struct sockaddr_can *sac)
|
||||||
@@ -617,6 +617,7 @@ static int j1939cat_parse_args(struct j1939cat_priv *priv, int argc, char *argv[
|
|||||||
if (priv->repeat < 1)
|
if (priv->repeat < 1)
|
||||||
err(EXIT_FAILURE, "send/repeat count can't be less then 1\n");
|
err(EXIT_FAILURE, "send/repeat count can't be less then 1\n");
|
||||||
break;
|
break;
|
||||||
|
case 'h': /*fallthrough*/
|
||||||
default:
|
default:
|
||||||
fputs(help_msg, stderr);
|
fputs(help_msg, stderr);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|||||||
Reference in New Issue
Block a user