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/lib/registry/interface.c

    r414 r745  
    4545_PUBLIC_ const char *reg_get_predef_name(uint32_t hkey)
    4646{
    47         int i;
     47        unsigned int i;
    4848        for (i = 0; reg_predefined_keys[i].name; i++) {
    4949                if (reg_predefined_keys[i].handle == hkey)
     
    5959                                               struct registry_key **key)
    6060{
    61         int i;
     61        unsigned int i;
    6262
    6363        for (i = 0; reg_predefined_keys[i].name; i++) {
     
    151151_PUBLIC_ WERROR reg_key_get_subkey_by_index(TALLOC_CTX *mem_ctx,
    152152                                            const struct registry_key *key,
    153                                             int idx, const char **name,
     153                                            uint32_t idx, const char **name,
    154154                                            const char **keyclass,
    155155                                            NTTIME *last_changed_time)
     
    186186 * Delete a key.
    187187 */
    188 _PUBLIC_ WERROR reg_key_del(struct registry_key *parent, const char *name)
     188_PUBLIC_ WERROR reg_key_del(TALLOC_CTX *mem_ctx, struct registry_key *parent,
     189                            const char *name)
    189190{
    190191        if (parent == NULL)
     
    194195                return WERR_NOT_SUPPORTED;
    195196
    196         return parent->context->ops->delete_key(parent, name);
     197        return parent->context->ops->delete_key(mem_ctx, parent, name);
    197198}
    198199
     
    202203_PUBLIC_ WERROR reg_key_add_name(TALLOC_CTX *mem_ctx,
    203204                                 struct registry_key *parent,
    204                                  const char *name, const char *key_class,
     205                                 const char *path, const char *key_class,
    205206                                 struct security_descriptor *desc,
    206207                                 struct registry_key **newkey)
     
    215216        }
    216217
    217         return parent->context->ops->create_key(mem_ctx, parent, name,
     218        return parent->context->ops->create_key(mem_ctx, parent, path,
    218219                                                key_class, desc, newkey);
    219220}
     
    258259 * Delete a value.
    259260 */
    260 _PUBLIC_ WERROR reg_del_value(struct registry_key *key, const char *valname)
     261_PUBLIC_ WERROR reg_del_value(TALLOC_CTX *mem_ctx, struct registry_key *key,
     262                              const char *valname)
    261263{
    262264        if (key == NULL)
     
    266268                return WERR_NOT_SUPPORTED;
    267269
    268         return key->context->ops->delete_value(key, valname);
     270        return key->context->ops->delete_value(mem_ctx, key, valname);
    269271}
    270272
Note: See TracChangeset for help on using the changeset viewer.