diff options
author | Volker Lendecke <vl@samba.org> | 2010-11-11 15:51:16 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2010-11-11 16:16:24 +0000 |
commit | 1b13a4d22b3f0eca6926ab8ce61147784f6e993e (patch) | |
tree | d4a083fda3f9bd640939db925bbfb7a10370cb74 /source3 | |
parent | 9c664dbd8c46e54aae4a4cebfafac61d618dd4f2 (diff) | |
download | samba-1b13a4d22b3f0eca6926ab8ce61147784f6e993e.tar.gz samba-1b13a4d22b3f0eca6926ab8ce61147784f6e993e.tar.bz2 samba-1b13a4d22b3f0eca6926ab8ce61147784f6e993e.zip |
s3: Remove two pointless variables
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clifile.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 759f227d67..f8a6220173 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -4122,7 +4122,6 @@ static NTSTATUS cli_set_ea(struct cli_state *cli, uint16_t setup_val, bool cli_set_ea_path(struct cli_state *cli, const char *path, const char *ea_name, const char *ea_val, size_t ea_len) { - uint16_t setup = TRANSACT2_SETPATHINFO; unsigned int param_len = 0; uint8_t *param; size_t srclen = 2*(strlen(path)+1); @@ -4140,8 +4139,8 @@ bool cli_set_ea_path(struct cli_state *cli, const char *path, const char *ea_nam p += clistr_push(cli, p, path, srclen, STR_TERMINATE); param_len = PTR_DIFF(p, param); - status = cli_set_ea(cli, setup, param, param_len, ea_name, - ea_val, ea_len); + status = cli_set_ea(cli, TRANSACT2_SETPATHINFO, param, param_len, + ea_name, ea_val, ea_len); SAFE_FREE(param); return NT_STATUS_IS_OK(status); } @@ -4153,14 +4152,14 @@ bool cli_set_ea_path(struct cli_state *cli, const char *path, const char *ea_nam bool cli_set_ea_fnum(struct cli_state *cli, uint16_t fnum, const char *ea_name, const char *ea_val, size_t ea_len) { uint8_t param[6]; - uint16_t setup = TRANSACT2_SETFILEINFO; NTSTATUS status; memset(param, 0, 6); SSVAL(param,0,fnum); SSVAL(param,2,SMB_INFO_SET_EA); - status = cli_set_ea(cli, setup, param, 6, ea_name, ea_val, ea_len); + status = cli_set_ea(cli, TRANSACT2_SETFILEINFO, param, 6, + ea_name, ea_val, ea_len); return NT_STATUS_IS_OK(status); } |