summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorIgor Kozhukhov <ikozhukhov@gmail.com>2013-08-15 11:11:41 -0700
committerRobert Mustacchi <rm@joyent.com>2013-08-15 16:18:22 -0700
commitcf7e209d5f01e9f5fe052b444899ba9cba0e9877 (patch)
tree72aade5c0d747ff5abdf044f5c9a9b5b8b3593ff /usr
parent9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2 (diff)
downloadillumos-joyent-cf7e209d5f01e9f5fe052b444899ba9cba0e9877.tar.gz
4024 uninitialized and unused variables in cmd/fs.d/nfs
Reviewed by: Dan McDonald <danmcd@nexenta.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr')
-rw-r--r--usr/src/cmd/fs.d/nfs/lib/smfcfg.c8
-rw-r--r--usr/src/cmd/fs.d/nfs/mountd/mountd.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/usr/src/cmd/fs.d/nfs/lib/smfcfg.c b/usr/src/cmd/fs.d/nfs/lib/smfcfg.c
index 78b34389a5..76576add59 100644
--- a/usr/src/cmd/fs.d/nfs/lib/smfcfg.c
+++ b/usr/src/cmd/fs.d/nfs/lib/smfcfg.c
@@ -104,12 +104,12 @@ int
fs_smf_set_prop(smf_fstype_t fstype, char *prop_name, char *valbuf,
char *instance, scf_type_t sctype, char *fmri)
{
- fs_smfhandle_t *phandle;
+ fs_smfhandle_t *phandle = NULL;
scf_handle_t *handle;
scf_propertygroup_t *pg;
scf_property_t *prop;
- scf_transaction_t *tran;
- scf_transaction_entry_t *entry;
+ scf_transaction_t *tran = NULL;
+ scf_transaction_entry_t *entry = NULL;
scf_instance_t *inst;
scf_value_t *val;
int valint;
@@ -238,7 +238,7 @@ int
fs_smf_get_prop(smf_fstype_t fstype, char *prop_name, char *cbuf,
char *instance, scf_type_t sctype, char *fmri, int *bufsz)
{
- fs_smfhandle_t *phandle;
+ fs_smfhandle_t *phandle = NULL;
scf_handle_t *handle;
scf_propertygroup_t *pg;
scf_property_t *prop;
diff --git a/usr/src/cmd/fs.d/nfs/mountd/mountd.c b/usr/src/cmd/fs.d/nfs/mountd/mountd.c
index dbf4c11ea1..a5358f7e91 100644
--- a/usr/src/cmd/fs.d/nfs/mountd/mountd.c
+++ b/usr/src/cmd/fs.d/nfs/mountd/mountd.c
@@ -2020,7 +2020,7 @@ getclientsflavors_new(share_t *sh, SVCXPRT *transp, struct netbuf **nb,
char *lasts;
char *f;
boolean_t access_ok;
- int count, c, perm;
+ int count, c;
boolean_t reject = B_FALSE;
opts = strdup(sh->sh_opts);
@@ -2030,7 +2030,7 @@ getclientsflavors_new(share_t *sh, SVCXPRT *transp, struct netbuf **nb,
}
p = opts;
- perm = count = c = 0;
+ count = c = 0;
/* default access is rw */
access_ok = B_TRUE;