summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-04-13 18:49:41 +0300
committerToomas Soome <tsoome@me.com>2020-11-10 21:38:25 +0200
commite3522c16ecc36b92b1a4b1c7f114205270965e69 (patch)
tree492442f244770c8d1a653a0e3b768d0c27a73a06
parentab1c26a6b072b5f88b50bd1182266a249664df5b (diff)
downloadillumos-joyent-e3522c16ecc36b92b1a4b1c7f114205270965e69.tar.gz
13229 scadm: this 'if' clause does not guard...
Reviewed by: Robert Mustacchi <rm@fingolfin.org> Reviewed by: Peter Tribble <peter.tribble@gmail.com> Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/cmd/scadm/sparc/mpxu/common/show.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/cmd/scadm/sparc/mpxu/common/show.c b/usr/src/cmd/scadm/sparc/mpxu/common/show.c
index 18c2dbbf5a..40a45cf25a 100644
--- a/usr/src/cmd/scadm/sparc/mpxu/common/show.c
+++ b/usr/src/cmd/scadm/sparc/mpxu/common/show.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* show.c: support for scadm show <variable> option (to show the value of
* a service processor NV variable)
@@ -107,9 +105,10 @@ ADM_Process_show_network()
gettext("SC network configuration is:"),
netParams->ipMode);
#endif
- if (strcmp(netParams->ipMode, "dhcp") == 0)
- (void) printf("%s %s\r\n", gettext("DHCP server:"),
- netParams->ipDHCPServer);
+ if (strcmp(netParams->ipMode, "dhcp") == 0) {
+ (void) printf("%s %s\r\n", gettext("DHCP server:"),
+ netParams->ipDHCPServer);
+ }
(void) printf("%s %s\r\n", gettext("IP Address:"),
netParams->ipAddr);
(void) printf("%s %s\r\n", gettext("Gateway address:"),