12201 Enable smatch for zonestat and zonestatd

Review Request #2498 — Created Jan. 25, 2020 and submitted

marcel
illumos-gate
master
12201
f988628...
general
This enables smatch for both zonestat and zonestatd and fixes one issue
detected by smatch in zonestat.
Nightly completed successfully.

Without the fix:

$ /usr/bin/zonestat -P resource 2>&1 | grep Error
zonestat: Error: -P requires -p
$

With the fix:

$ proto/root_i386/usr/bin/zonestat -P resource 2>&1 | grep Error
zonestat: Error: -P requires -p
$
seeemef@mac.com
  1. Ship It!
  2. 
      
tsoome
  1. Ship It!
  2. 
      
marcel
Review request changed

Status: Closed (submitted)

Change Summary:

commit ecaa37affc4da0ba0f1331de875432d68cf70a80
Author:     Marcel Telka <marcel@telka.sk>
AuthorDate: Fri Jan 24 17:59:49 2020 +0100
Commit:     Dan McDonald <danmcd@joyent.com>
CommitDate: Mon Jan 27 09:47:00 2020 -0500

    12201 Enable smatch for zonestat and zonestatd
    Reviewed by: C Fraire <seeemef@mac.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

:100644 100644 a8b62f65d3 96bc8c5e5e M	usr/src/cmd/zonestat/zonestat/Makefile
:100644 100644 b66612ee10 fac6f97371 M	usr/src/cmd/zonestat/zonestat/zonestat.c
:100644 100644 727c71148c de4b2fc4b6 M	usr/src/cmd/zonestat/zonestatd/Makefile
Loading...