1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-24 15:33:20 +03:00

r9700: Change DATA_BLOB in ejs back to struct datablob

Support writing idmap mappings to winbind.ldif
This commit is contained in:
Jelmer Vernooij
2005-08-28 01:37:27 +00:00
committed by Gerald (Jerry) Carter
parent 5100ae211c
commit 3709def353
4 changed files with 41 additions and 9 deletions

View File

@@ -323,7 +323,7 @@ struct MprVar mprNTSTATUS(NTSTATUS status)
struct MprVar mprDataBlob(DATA_BLOB blob)
{
struct MprVar res;
DATA_BLOB *pblob = talloc(mprMemCtx(), DATA_BLOB);
struct datablob *pblob = talloc(mprMemCtx(), struct datablob);
*pblob = data_blob_talloc(pblob, blob.data, blob.length);
res = mprObject("DATA_BLOB");
@@ -337,9 +337,9 @@ struct MprVar mprDataBlob(DATA_BLOB blob)
/*
return a data blob from a mpr var created using mprDataBlob
*/
struct data_blob *mprToDataBlob(struct MprVar *v)
struct datablob *mprToDataBlob(struct MprVar *v)
{
return talloc_get_type(mprGetPtr(v, "blob"), struct data_blob);
return talloc_get_type(mprGetPtr(v, "blob"), struct datablob);
}
/*