svn commit: samba r13701 - in branches/SAMBA_4_0/source/ntvfs/common: .

tridge at samba.org tridge at samba.org
Mon Feb 27 01:03:22 GMT 2006


Author: tridge
Date: 2006-02-27 01:03:21 +0000 (Mon, 27 Feb 2006)
New Revision: 13701

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13701

Log:

removed some unnecessary casts

Modified:
   branches/SAMBA_4_0/source/ntvfs/common/brlock.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/common/brlock.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/common/brlock.c	2006-02-27 00:39:26 UTC (rev 13700)
+++ branches/SAMBA_4_0/source/ntvfs/common/brlock.c	2006-02-27 01:03:21 UTC (rev 13701)
@@ -238,7 +238,7 @@
 	struct lock_struct lock, *locks=NULL;
 	NTSTATUS status;
 
-	kbuf.dptr = (uint8_t *)file_key->data;
+	kbuf.dptr = file_key->data;
 	kbuf.dsize = file_key->length;
 
 	if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {
@@ -383,7 +383,7 @@
 	struct lock_context context;
 	NTSTATUS status;
 
-	kbuf.dptr = (uint8_t *)file_key->data;
+	kbuf.dptr = file_key->data;
 	kbuf.dsize = file_key->length;
 
 	if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {
@@ -467,7 +467,7 @@
 	struct lock_struct *locks;
 	NTSTATUS status;
 
-	kbuf.dptr = (char *)file_key->data;
+	kbuf.dptr = file_key->data;
 	kbuf.dsize = file_key->length;
 
 	if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {
@@ -538,7 +538,7 @@
 	int count, i;
 	struct lock_struct lock, *locks;
 
-	kbuf.dptr = (char *)file_key->data;
+	kbuf.dptr = file_key->data;
 	kbuf.dsize = file_key->length;
 
 	dbuf = tdb_fetch(brl->w->tdb, kbuf);
@@ -581,7 +581,7 @@
 	struct lock_struct *locks;
 	NTSTATUS status;
 
-	kbuf.dptr = (char *)file_key->data;
+	kbuf.dptr = file_key->data;
 	kbuf.dsize = file_key->length;
 
 	if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {



More information about the samba-cvs mailing list