diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-09 11:17:02 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-10 16:45:12 +1100 |
commit | 40bf23d862c92a3c519cffaf2175514a51ce3865 (patch) | |
tree | 21665a808ab16fe2d9d4cc40e82f0a79bf50a47d | |
parent | 7824fd59547adeb84c367d5459ae5f55a3161328 (diff) | |
download | samba-40bf23d862c92a3c519cffaf2175514a51ce3865.tar.gz samba-40bf23d862c92a3c519cffaf2175514a51ce3865.tar.bz2 samba-40bf23d862c92a3c519cffaf2175514a51ce3865.zip |
s3-lib: Remove unused pid_path()
piddir.c calls lp_piddir() directly.
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html
Andrew Bartlett
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/lib/util.c | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 6ad0a82f5c..7527e04e67 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -535,7 +535,6 @@ void *smb_xmalloc_array(size_t size, unsigned int count); char *myhostname(void); char *myhostname_upper(void); char *lock_path(const char *name); -char *pid_path(const char *name); char *state_path(const char *name); char *cache_path(const char *name); bool parent_dirname(TALLOC_CTX *mem_ctx, const char *dir, char **parent, diff --git a/source3/lib/util.c b/source3/lib/util.c index b783c7e9c9..4ae872aa3b 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1556,19 +1556,6 @@ char *lock_path(const char *name) } /** - * @brief Returns an absolute path to a file in the Samba pid directory. - * - * @param name File to find, relative to PIDDIR. - * - * @retval Pointer to a talloc'ed string containing the full path. - **/ - -char *pid_path(const char *name) -{ - return xx_path(name, lp_piddir()); -} - -/** * @brief Returns an absolute path to a file in the Samba state directory. * * @param name File to find, relative to STATEDIR. |