git: a288670287f4 - stable/15 - pw: Style
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Oct 2025 19:35:12 UTC
The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=a288670287f404ce15ba81a94fb5344fb287fe91 commit a288670287f404ce15ba81a94fb5344fb287fe91 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2025-09-18 22:38:58 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2025-10-04 19:34:57 +0000 pw: Style No functional change intended. MFC after: 1 week Sponsored by: The FreeBSD Foundation Sponsored by: Klara, Inc. (cherry picked from commit 42dc71a544a4d78d0068f70b6d4089a8c9e07cb1) --- usr.sbin/pw/pw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c index 18f1a17ba942..6f59e392bdd0 100644 --- a/usr.sbin/pw/pw.c +++ b/usr.sbin/pw/pw.c @@ -166,8 +166,7 @@ main(int argc, char *argv[]) conf.altroot = true; } else break; - } - else if (mode == -1 && (tmp = getindex(Modes, argv[1])) != -1) + } else if (mode == -1 && (tmp = getindex(Modes, argv[1])) != -1) mode = tmp; else if (which == -1 && (tmp = getindex(Which, argv[1])) != -1) which = tmp; @@ -179,7 +178,7 @@ main(int argc, char *argv[]) } else if (strcmp(argv[1], "help") == 0 && argv[2] == NULL) cmdhelp(mode, which); else if (which != -1 && mode != -1) - arg1 = argv[1]; + arg1 = argv[1]; else errx(EX_USAGE, "unknown keyword `%s'", argv[1]); ++argv;