Changeset 745 for trunk/server/source4/ntvfs/common/notify.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source4/ntvfs/common/notify.c
r414 r745 26 26 #include "includes.h" 27 27 #include "system/filesys.h" 28 #include "../tdb/include/tdb.h"28 #include <tdb.h> 29 29 #include "../lib/util/util_tdb.h" 30 30 #include "messaging/messaging.h" 31 #include " tdb_wrap.h"31 #include "lib/util/tdb_wrap.h" 32 32 #include "lib/messaging/irpc.h" 33 #include "librpc/gen_ndr/ndr_ notify.h"33 #include "librpc/gen_ndr/ndr_s4_notify.h" 34 34 #include "../lib/util/dlinklist.h" 35 35 #include "ntvfs/common/ntvfs_common.h" … … 37 37 #include "cluster/cluster.h" 38 38 #include "param/param.h" 39 #include "lib/util/tsort.h" 39 40 40 41 struct notify_context { … … 46 47 int seqnum; 47 48 struct sys_notify_context *sys_notify_ctx; 48 struct smb_iconv_convenience *iconv_convenience;49 49 }; 50 50 … … 113 113 notify->list = NULL; 114 114 notify->array = NULL; 115 notify->iconv_convenience = lp_iconv_convenience(lp_ctx);116 115 notify->seqnum = tdb_get_seqnum(notify->w->tdb); 117 116 … … 178 177 blob.length = dbuf.dsize; 179 178 180 ndr_err = ndr_pull_struct_blob(&blob, notify->array, notify->iconv_convenience, 181 notify->array, 179 ndr_err = ndr_pull_struct_blob(&blob, notify->array, notify->array, 182 180 (ndr_pull_flags_fn_t)ndr_pull_notify_array); 183 181 free(dbuf.dptr); … … 227 225 NT_STATUS_HAVE_NO_MEMORY(tmp_ctx); 228 226 229 ndr_err = ndr_push_struct_blob(&blob, tmp_ctx, notify-> iconv_convenience, notify->array,227 ndr_err = ndr_push_struct_blob(&blob, tmp_ctx, notify->array, 230 228 (ndr_push_flags_fn_t)ndr_push_notify_array); 231 229 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { … … 263 261 } 264 262 265 ndr_err = ndr_pull_struct_blob(data, tmp_ctx, notify->iconv_convenience,&ev,263 ndr_err = ndr_pull_struct_blob(data, tmp_ctx, &ev, 266 264 (ndr_pull_flags_fn_t)ndr_pull_notify_event); 267 265 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { … … 329 327 d->max_mask_subdir |= e->subdir_filter; 330 328 331 if (d->num_entries > 1) { 332 qsort(d->entries, d->num_entries, sizeof(d->entries[0]), notify_compare); 333 } 329 TYPESAFE_QSORT(d->entries, d->num_entries, notify_compare); 334 330 335 331 /* recalculate the maximum masks */ … … 562 558 tmp_ctx = talloc_new(notify); 563 559 564 ndr_err = ndr_push_struct_blob(&data, tmp_ctx, notify->iconv_convenience,&ev, (ndr_push_flags_fn_t)ndr_push_notify_event);560 ndr_err = ndr_push_struct_blob(&data, tmp_ctx, &ev, (ndr_push_flags_fn_t)ndr_push_notify_event); 565 561 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { 566 562 talloc_free(tmp_ctx);
Note:
See TracChangeset
for help on using the changeset viewer.