Mercurial > illumos > illumos-gate
changeset 14141:85a6c280af72
4024 uninitialized and unused variables in cmd/fs.d/nfs
Reviewed by: Dan McDonald <danmcd@nexenta.com>
Approved by: Robert Mustacchi <rm@joyent.com>
author | Igor Kozhukhov <ikozhukhov@gmail.com> |
---|---|
date | Thu, 15 Aug 2013 11:11:41 -0700 |
parents | 1652c59077c6 |
children | 20c0ad5cefdf |
files | usr/src/cmd/fs.d/nfs/lib/smfcfg.c usr/src/cmd/fs.d/nfs/mountd/mountd.c |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/fs.d/nfs/lib/smfcfg.c Wed May 08 01:46:41 2013 +0000 +++ b/usr/src/cmd/fs.d/nfs/lib/smfcfg.c Thu Aug 15 11:11:41 2013 -0700 @@ -104,12 +104,12 @@ 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 @@ 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;
--- a/usr/src/cmd/fs.d/nfs/mountd/mountd.c Wed May 08 01:46:41 2013 +0000 +++ b/usr/src/cmd/fs.d/nfs/mountd/mountd.c Thu Aug 15 11:11:41 2013 -0700 @@ -2020,7 +2020,7 @@ 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 @@ } p = opts; - perm = count = c = 0; + count = c = 0; /* default access is rw */ access_ok = B_TRUE;