s4-param Rename lock_path() -> lpcfg_lock_path()
authorAndrew Bartlett <abartlet@samba.org>
Fri, 29 Apr 2011 02:41:45 +0000 (12:41 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 29 Apr 2011 06:38:14 +0000 (16:38 +1000)
This avoids a conflict with the source3/ lock_path()

source4/nbt_server/wins/winsdb.c
source4/param/param.h
source4/param/util.c
source4/smb_server/smb/negprot.c

index 791ce957c7b1c0f943022640bc1dc67889dd595f..4a1486092b247fb958d723e60590717e941d8816 100644 (file)
@@ -975,7 +975,7 @@ static bool winsdb_check_or_add_module_list(struct tevent_context *ev_ctx,
                flags |= LDB_FLG_NOSYNC;
        }
 
                flags |= LDB_FLG_NOSYNC;
        }
 
-       h->ldb = ldb_wrap_connect(h, ev_ctx, lp_ctx, lock_path(h, lp_ctx, lpcfg_wins_url(lp_ctx)),
+       h->ldb = ldb_wrap_connect(h, ev_ctx, lp_ctx, lpcfg_lock_path(h, lp_ctx, lpcfg_wins_url(lp_ctx)),
                                  NULL, NULL, flags);
        if (!h->ldb) goto failed;
 
                                  NULL, NULL, flags);
        if (!h->ldb) goto failed;
 
@@ -1011,7 +1011,7 @@ struct winsdb_handle *winsdb_connect(TALLOC_CTX *mem_ctx,
                flags |= LDB_FLG_NOSYNC;
        }
 
                flags |= LDB_FLG_NOSYNC;
        }
 
-       h->ldb = ldb_wrap_connect(h, ev_ctx, lp_ctx, lock_path(h, lp_ctx, lpcfg_wins_url(lp_ctx)),
+       h->ldb = ldb_wrap_connect(h, ev_ctx, lp_ctx, lpcfg_lock_path(h, lp_ctx, lpcfg_wins_url(lp_ctx)),
                                  NULL, NULL, flags);
        if (!h->ldb) goto failed;
 
                                  NULL, NULL, flags);
        if (!h->ldb) goto failed;
 
index b8fb369bdb5343dd178c204f5e2f86717ca2a6f5..c33d38450049bc77f05f7e785e4245e4228dc7fe 100644 (file)
@@ -274,7 +274,7 @@ bool lpcfg_is_myname(struct loadparm_context *lp_ctx, const char *name);
 /**
  A useful function for returning a path in the Samba lock directory.
 **/
 /**
  A useful function for returning a path in the Samba lock directory.
 **/
-char *lock_path(TALLOC_CTX* mem_ctx, struct loadparm_context *lp_ctx,
+char *lpcfg_lock_path(TALLOC_CTX* mem_ctx, struct loadparm_context *lp_ctx,
                         const char *name);
 
 /**
                         const char *name);
 
 /**
index 3413f25e49e8045c0832ff3a1bfd7fc3bba96732..af46c09c07eb7c10eecc90643c65c8a6b8ebdbf0 100644 (file)
@@ -75,7 +75,7 @@ bool lpcfg_is_myname(struct loadparm_context *lp_ctx, const char *name)
 /**
  A useful function for returning a path in the Samba lock directory.
 **/
 /**
  A useful function for returning a path in the Samba lock directory.
 **/
-char *lock_path(TALLOC_CTX* mem_ctx, struct loadparm_context *lp_ctx,
+char *lpcfg_lock_path(TALLOC_CTX* mem_ctx, struct loadparm_context *lp_ctx,
                         const char *name)
 {
        char *fname, *dname;
                         const char *name)
 {
        char *fname, *dname;
index 656da4df201e8ca63ede285eb341ae2608758e47..2466a6070598edbb83d750bb72f875eecc2cc5b2 100644 (file)
@@ -278,7 +278,7 @@ static void reply_nt1(struct smbsrv_request *req, uint16_t choice)
                capabilities |= CAP_LARGE_READX | CAP_LARGE_WRITEX | CAP_W2K_SMBS;
        }
 
                capabilities |= CAP_LARGE_READX | CAP_LARGE_WRITEX | CAP_W2K_SMBS;
        }
 
-       large_test_path = lock_path(req, req->smb_conn->lp_ctx, "large_test.dat");
+       large_test_path = lpcfg_lock_path(req, req->smb_conn->lp_ctx, "large_test.dat");
        if (large_file_support(large_test_path)) {
                capabilities |= CAP_LARGE_FILES;
        }
        if (large_file_support(large_test_path)) {
                capabilities |= CAP_LARGE_FILES;
        }