summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-29 22:16:31 +0100
committerVolker Lendecke <vl@samba.org>2007-12-29 23:12:51 +0100
commita59280792cab616f5b269960ab68bc44ccc1fd38 (patch)
treea2770e3303c0ca9e788f05d83663acc0c27fcc65 /source3/libsmb
parent99bd615a80e8f983d386e260e747db102ec38cf3 (diff)
downloadsamba-a59280792cab616f5b269960ab68bc44ccc1fd38.tar.gz
samba-a59280792cab616f5b269960ab68bc44ccc1fd38.tar.bz2
samba-a59280792cab616f5b269960ab68bc44ccc1fd38.zip
Remove tiny code duplication
sid_size did the same as ndr_size_dom_sid (This used to be commit 8aec5d09ba023413bd8ecbdfbc7d23904df94389)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliquota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/cliquota.c b/source3/libsmb/cliquota.c
index 206576f040..f369d28dff 100644
--- a/source3/libsmb/cliquota.c
+++ b/source3/libsmb/cliquota.c
@@ -150,7 +150,7 @@ bool cli_get_user_quota(struct cli_state *cli, int quota_fnum, SMB_NTQUOTA_STRUC
SIVAL(params, 8,0x00000000);
SIVAL(params,12,0x00000024);
- sid_len = sid_size(&pqt->sid);
+ sid_len = ndr_size_dom_sid(&pqt->sid, 0);
data_len = sid_len+8;
SIVAL(data, 0, 0x00000000);
SIVAL(data, 4, sid_len);
@@ -213,7 +213,7 @@ bool cli_set_user_quota(struct cli_state *cli, int quota_fnum, SMB_NTQUOTA_STRUC
SSVAL(params,0,quota_fnum);
- sid_len = sid_size(&pqt->sid);
+ sid_len = ndr_size_dom_sid(&pqt->sid, 0);
SIVAL(data,0,0);
SIVAL(data,4,sid_len);
SBIG_UINT(data, 8,(SMB_BIG_UINT)0);