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,30 ****
--- 21,34 ----
/*
* 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,2587 ****
strisnum(char *s)
{
if (s == NULL || !*s)
return (0);
! for (; *s == '-' || *s == '+'; s++)
!
if (!*s)
return (0);
! for (; *s; s++)
if (!isdigit(*s))
return (0);
return (1);
}
static int
--- 2574,2592 ----
strisnum(char *s)
{
if (s == NULL || !*s)
return (0);
! for (; *s == '-' || *s == '+'; s++) {
if (!*s)
return (0);
+ }
! for (; *s; s++) {
if (!isdigit(*s))
return (0);
+ }
return (1);
}
static int