diff options
author | Gordon Ross <gwr@nexenta.com> | 2015-03-03 21:50:38 -0500 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2015-03-06 16:30:58 -0500 |
commit | ff904c117f0def740594af26b7201cd392dc8411 (patch) | |
tree | 29d0b33f59fb3149a88980e2a5472dcbce82a91a /usr/src/cmd | |
parent | 4adca7e7219d20c7ca20933b5006222e781ff0e9 (diff) | |
download | illumos-gate-ff904c117f0def740594af26b7201cd392dc8411.tar.gz |
5680 Build warnings in cmd/power, cmd/rpcbind
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/cmd')
-rw-r--r-- | usr/src/cmd/power/handlers.c | 2 | ||||
-rw-r--r-- | usr/src/cmd/rpcbind/rpcbind.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/power/handlers.c b/usr/src/cmd/power/handlers.c index 70f489ab12..da56c14218 100644 --- a/usr/src/cmd/power/handlers.c +++ b/usr/src/cmd/power/handlers.c @@ -1116,7 +1116,7 @@ sfpath(void) char diskname[256]; struct stat stbuf; int dir = 0; - dev_t dev; + dev_t dev = NODEV; if (statefile) { mesg(MERR, "ignored redundant statefile entry\n"); diff --git a/usr/src/cmd/rpcbind/rpcbind.c b/usr/src/cmd/rpcbind/rpcbind.c index 5703482aef..694e4f942f 100644 --- a/usr/src/cmd/rpcbind/rpcbind.c +++ b/usr/src/cmd/rpcbind/rpcbind.c @@ -1058,7 +1058,7 @@ static boolean_t get_smf_prop(const char *var, boolean_t def_val) { scf_simple_prop_t *prop; - uint8_t *val; + uint8_t *val = NULL; boolean_t res = def_val; prop = scf_simple_prop_get(NULL, NULL, "config", var); @@ -1081,7 +1081,7 @@ static int get_smf_iprop(const char *var, int def_val, int min, int max) { scf_simple_prop_t *prop; - int64_t *val; + int64_t *val = NULL; int res = def_val; prop = scf_simple_prop_get(NULL, NULL, "config", var); |