Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source4/ntvfs/common/notify.c

    r414 r745  
    2626#include "includes.h"
    2727#include "system/filesys.h"
    28 #include "../tdb/include/tdb.h"
     28#include <tdb.h>
    2929#include "../lib/util/util_tdb.h"
    3030#include "messaging/messaging.h"
    31 #include "tdb_wrap.h"
     31#include "lib/util/tdb_wrap.h"
    3232#include "lib/messaging/irpc.h"
    33 #include "librpc/gen_ndr/ndr_notify.h"
     33#include "librpc/gen_ndr/ndr_s4_notify.h"
    3434#include "../lib/util/dlinklist.h"
    3535#include "ntvfs/common/ntvfs_common.h"
     
    3737#include "cluster/cluster.h"
    3838#include "param/param.h"
     39#include "lib/util/tsort.h"
    3940
    4041struct notify_context {
     
    4647        int seqnum;
    4748        struct sys_notify_context *sys_notify_ctx;
    48         struct smb_iconv_convenience *iconv_convenience;
    4949};
    5050
     
    113113        notify->list = NULL;
    114114        notify->array = NULL;
    115         notify->iconv_convenience = lp_iconv_convenience(lp_ctx);
    116115        notify->seqnum = tdb_get_seqnum(notify->w->tdb);
    117116
     
    178177        blob.length = dbuf.dsize;
    179178
    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,
    182180                                       (ndr_pull_flags_fn_t)ndr_pull_notify_array);
    183181        free(dbuf.dptr);
     
    227225        NT_STATUS_HAVE_NO_MEMORY(tmp_ctx);
    228226
    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,
    230228                                       (ndr_push_flags_fn_t)ndr_push_notify_array);
    231229        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
     
    263261        }
    264262
    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,
    266264                                      (ndr_pull_flags_fn_t)ndr_pull_notify_event);
    267265        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
     
    329327        d->max_mask_subdir |= e->subdir_filter;
    330328
    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);
    334330
    335331        /* recalculate the maximum masks */
     
    562558        tmp_ctx = talloc_new(notify);
    563559
    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);
    565561        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
    566562                talloc_free(tmp_ctx);
Note: See TracChangeset for help on using the changeset viewer.