Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/librpc/gen_ndr/ndr_notify.c

    r745 r751  
    8888_PUBLIC_ enum ndr_err_code ndr_pull_notify_entry_array(struct ndr_pull *ndr, int ndr_flags, struct notify_entry_array *r)
    8989{
     90
    9091        uint32_t cntr_entries_0;
    9192        TALLOC_CTX *_mem_save_entries_0;
     
    9394                NDR_CHECK(ndr_pull_align(ndr, 8));
    9495                NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_entries));
    95                 NDR_PULL_ALLOC_N(ndr, r->entries, r->num_entries);
     96                size_entries_0 = r->num_entries;
     97                NDR_PULL_ALLOC_N(ndr, r->entries, size_entries_0);
    9698                _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9799                NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
    98                 for (cntr_entries_0 = 0; cntr_entries_0 < r->num_entries; cntr_entries_0++) {
     100                for (cntr_entries_0 = 0; cntr_entries_0 < ; cntr_entries_0++) {
    99101                        NDR_CHECK(ndr_pull_notify_entry(ndr, NDR_SCALARS, &r->entries[cntr_entries_0]));
    100102                }
     
    143145static enum ndr_err_code ndr_pull_notify_depth(struct ndr_pull *ndr, int ndr_flags, struct notify_depth *r)
    144146{
     147
    145148        uint32_t cntr_entries_0;
    146149        TALLOC_CTX *_mem_save_entries_0;
     
    150153                NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->max_mask_subdir));
    151154                NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_entries));
    152                 NDR_PULL_ALLOC_N(ndr, r->entries, r->num_entries);
     155                size_entries_0 = r->num_entries;
     156                NDR_PULL_ALLOC_N(ndr, r->entries, size_entries_0);
    153157                _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
    154158                NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
    155                 for (cntr_entries_0 = 0; cntr_entries_0 < r->num_entries; cntr_entries_0++) {
     159                for (cntr_entries_0 = 0; cntr_entries_0 < ; cntr_entries_0++) {
    156160                        NDR_CHECK(ndr_pull_notify_entry(ndr, NDR_SCALARS, &r->entries[cntr_entries_0]));
    157161                }
     
    200204_PUBLIC_ enum ndr_err_code ndr_pull_notify_array(struct ndr_pull *ndr, int ndr_flags, struct notify_array *r)
    201205{
     206
    202207        uint32_t cntr_depth_0;
    203208        TALLOC_CTX *_mem_save_depth_0;
     
    205210                NDR_CHECK(ndr_pull_align(ndr, 8));
    206211                NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_depths));
    207                 NDR_PULL_ALLOC_N(ndr, r->depth, r->num_depths);
     212                size_depth_0 = r->num_depths;
     213                NDR_PULL_ALLOC_N(ndr, r->depth, size_depth_0);
    208214                _mem_save_depth_0 = NDR_PULL_GET_MEM_CTX(ndr);
    209215                NDR_PULL_SET_MEM_CTX(ndr, r->depth, 0);
    210                 for (cntr_depth_0 = 0; cntr_depth_0 < r->num_depths; cntr_depth_0++) {
     216                for (cntr_depth_0 = 0; cntr_depth_0 < ; cntr_depth_0++) {
    211217                        NDR_CHECK(ndr_pull_notify_depth(ndr, NDR_SCALARS, &r->depth[cntr_depth_0]));
    212218                }
     
    342348_PUBLIC_ enum ndr_err_code ndr_pull_FILE_NOTIFY_INFORMATION(struct ndr_pull *ndr, int ndr_flags, struct FILE_NOTIFY_INFORMATION *r)
    343349{
     350
    344351        {
    345352                uint32_t _flags_save_STRUCT = ndr->flags;
     
    353360                                uint32_t _flags_save_uint16 = ndr->flags;
    354361                                ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NOTERM);
    355                                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->FileName1, r->FileNameLength, sizeof(uint16_t), CH_UTF16));
     362                                size_FileName1_0 = r->FileNameLength;
     363                                NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->FileName1, size_FileName1_0, sizeof(uint16_t), CH_UTF16));
    356364                                ndr->flags = _flags_save_uint16;
    357365                        }
Note: See TracChangeset for help on using the changeset viewer.