mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
libsmb: Use sizeof instead of explicit numbers
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Apr 30 16:02:19 CEST 2013 on sn-devel-104
This commit is contained in:
parent
b8c1e30a6f
commit
5f82641553
@ -218,9 +218,9 @@ struct smb2_request *smb2_create_send(struct smb2_tree *tree, struct smb2_create
|
||||
return NULL;
|
||||
}
|
||||
|
||||
status = smb2_create_blob_add(req, &blobs,
|
||||
SMB2_CREATE_TAG_RQLS,
|
||||
data_blob_const(data, 32));
|
||||
status = smb2_create_blob_add(
|
||||
req, &blobs, SMB2_CREATE_TAG_RQLS,
|
||||
data_blob_const(data, sizeof(data)));
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
talloc_free(req);
|
||||
return NULL;
|
||||
@ -236,9 +236,9 @@ struct smb2_request *smb2_create_send(struct smb2_tree *tree, struct smb2_create
|
||||
return NULL;
|
||||
}
|
||||
|
||||
status = smb2_create_blob_add(req, &blobs,
|
||||
SMB2_CREATE_TAG_RQLS,
|
||||
data_blob_const(data, 52));
|
||||
status = smb2_create_blob_add(
|
||||
req, &blobs, SMB2_CREATE_TAG_RQLS,
|
||||
data_blob_const(data, sizeof(data)));
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
talloc_free(req);
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user