summaryrefslogtreecommitdiff
path: root/usr/src/cmd/auditconfig
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-12-19 18:10:14 +0000
committerJohn Levon <john.levon@joyent.com>2019-03-08 15:59:03 +0000
commitbc54f855e0de1e590115101c80f152a20722cfb0 (patch)
tree27cff7229dcd40fe061477176fc30ca00a6656f7 /usr/src/cmd/auditconfig
parent8f5edf1f887948e6be5982cbe7f196909927af91 (diff)
downloadillumos-joyent-bc54f855e0de1e590115101c80f152a20722cfb0.tar.gz
10120 smatch indenting fixes for usr/src/cmd
Reviewed by: Gergő Doma <domag02@gmail.com> Reviewed by: Jason King <jason.brian.king@gmail.com> Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/cmd/auditconfig')
-rw-r--r--usr/src/cmd/auditconfig/auditconfig.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/usr/src/cmd/auditconfig/auditconfig.c b/usr/src/cmd/auditconfig/auditconfig.c
index 197ab63ad3..7fdaf7c59c 100644
--- a/usr/src/cmd/auditconfig/auditconfig.c
+++ b/usr/src/cmd/auditconfig/auditconfig.c
@@ -23,6 +23,10 @@
*/
/*
+ * Copyright (c) 2019, Joyent, Inc.
+ */
+
+/*
* auditconfig - set and display audit parameters
*/
@@ -2572,14 +2576,15 @@ strisnum(char *s)
if (s == NULL || !*s)
return (0);
- for (; *s == '-' || *s == '+'; s++)
-
- if (!*s)
- return (0);
+ for (; *s == '-' || *s == '+'; s++) {
+ if (!*s)
+ return (0);
+ }
- for (; *s; s++)
+ for (; *s; s++) {
if (!isdigit(*s))
return (0);
+ }
return (1);
}