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/source3/registry/reg_cachehook.c

    r414 r745  
    33 *  Virtual Windows Registry Layer
    44 *  Copyright (C) Gerald Carter                     2002.
     5 *  Copyright (C) Michael Adam                      2008
    56 *
    67 *  This program is free software; you can redistribute it and/or modify
     
    2223#include "includes.h"
    2324#include "adt_tree.h"
     25#include "registry.h"
     26#include "reg_cachehook.h"
    2427
    2528#undef DBGC_CLASS
    2629#define DBGC_CLASS DBGC_REGISTRY
    2730
    28 static SORTED_TREE *cache_tree = NULL;
     31static struct sorted_tree *cache_tree = NULL;
    2932extern struct registry_ops regdb_ops;           /* these are the default */
    3033
     
    4144        if (tmp_path == NULL) {
    4245                DEBUG(0, ("talloc_asprintf failed!\n"));
    43                 return WERR_NOMEM;
    44         }
    45 
    46         tmp_path = talloc_string_sub(mem_ctx, tmp_path, "\\", "/");
    47         if (tmp_path == NULL) {
    48                 DEBUG(0, ("talloc_string_sub_failed!\n"));
    4946                return WERR_NOMEM;
    5047        }
     
    6562        }
    6663
    67         cache_tree = pathtree_init(&regdb_ops, NULL);
     64        cache_tree = pathtree_init(&regdb_ops);
    6865        if (cache_tree == NULL) {
    6966                return WERR_NOMEM;
     
    7774/**********************************************************************
    7875 Add a new registry hook to the cache.  Note that the keyname
    79  is not in the exact format that a SORTED_TREE expects.
     76 is not in the exact format that a struct sorted_tree expects.
    8077 *********************************************************************/
    8178
Note: See TracChangeset for help on using the changeset viewer.