Print this page
10120 smatch indenting fixes for usr/src/cmd
Reviewed by: Gergő Doma <domag02@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>
@@ -21,10 +21,14 @@
/*
* Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/*
+ * Copyright (c) 2019, Joyent, Inc.
+ */
+
+/*
* auditconfig - set and display audit parameters
*/
#include <locale.h>
#include <sys/types.h>
@@ -2570,18 +2574,19 @@
strisnum(char *s)
{
if (s == NULL || !*s)
return (0);
- for (; *s == '-' || *s == '+'; s++)
-
+ for (; *s == '-' || *s == '+'; s++) {
if (!*s)
return (0);
+ }
- for (; *s; s++)
+ for (; *s; s++) {
if (!isdigit(*s))
return (0);
+ }
return (1);
}
static int