svn commit: samba r4327 - in branches/SAMBA_4_0/source/lib: .

metze at samba.org metze at samba.org
Tue Dec 21 15:15:49 GMT 2004


Author: metze
Date: 2004-12-21 15:15:49 +0000 (Tue, 21 Dec 2004)
New Revision: 4327

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

Log:
add usefull function if you don't want that the data will talloc_memdup()'ed

metze

Modified:
   branches/SAMBA_4_0/source/lib/data_blob.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/data_blob.c
===================================================================
--- branches/SAMBA_4_0/source/lib/data_blob.c	2004-12-21 15:01:53 UTC (rev 4326)
+++ branches/SAMBA_4_0/source/lib/data_blob.c	2004-12-21 15:15:49 UTC (rev 4327)
@@ -173,3 +173,10 @@
 	return blob;
 }
 
+DATA_BLOB data_blob_const(const void *p, size_t length)
+{
+	DATA_BLOB blob;
+	blob.data = discard_const(p);
+	blob.length = length;
+	return blob;
+}



More information about the samba-cvs mailing list