diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-01-05 15:24:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:19 -0500 |
commit | a4fc93023506bcc41f869e75d895c5273a2a5cf4 (patch) | |
tree | e7c0f845fa8bca4899e077b630b2e0d4759db516 /source4/dsdb/samdb/samdb.c | |
parent | e1944a3d6d2d4e8772c17891486bbcb992c7096a (diff) | |
download | samba-a4fc93023506bcc41f869e75d895c5273a2a5cf4.tar.gz samba-a4fc93023506bcc41f869e75d895c5273a2a5cf4.tar.bz2 samba-a4fc93023506bcc41f869e75d895c5273a2a5cf4.zip |
r4532: - rename bitmap -> bits
the next commit is support for typedef bitmap {...}; in pidl
metze
(This used to be commit bd06a85cb747aea29a400050cb9d25a3240ef1cc)
Diffstat (limited to 'source4/dsdb/samdb/samdb.c')
-rw-r--r-- | source4/dsdb/samdb/samdb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c index 65f818b37d..9a677249eb 100644 --- a/source4/dsdb/samdb/samdb.c +++ b/source4/dsdb/samdb/samdb.c @@ -556,14 +556,14 @@ struct samr_LogonHours samdb_result_logon_hours(TALLOC_CTX *mem_ctx, struct ldb_ const int units_per_week = 168; const struct ldb_val *val = ldb_msg_find_ldb_val(msg, attr); ZERO_STRUCT(hours); - hours.bitmap = talloc_array_p(mem_ctx, uint8, units_per_week); - if (!hours.bitmap) { + hours.bits = talloc_array_p(mem_ctx, uint8, units_per_week); + if (!hours.bits) { return hours; } hours.units_per_week = units_per_week; - memset(hours.bitmap, 0xFF, units_per_week); + memset(hours.bits, 0xFF, units_per_week); if (val) { - memcpy(hours.bitmap, val->data, MIN(val->length, units_per_week)); + memcpy(hours.bits, val->data, MIN(val->length, units_per_week)); } return hours; } @@ -888,7 +888,7 @@ int samdb_msg_add_logon_hours(void *ctx, TALLOC_CTX *mem_ctx, struct ldb_message struct ldb_wrap *sam_ctx = ctx; struct ldb_val val; val.length = hours->units_per_week / 8; - val.data = hours->bitmap; + val.data = hours->bits; return ldb_msg_add_value(sam_ctx->ldb, msg, attr_name, &val); } |