summaryrefslogtreecommitdiff
path: root/source4/lib/substitute.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-09-22 23:50:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:04 -0500
commit79ae828819193dd9ed5e060f78a88752e30bd1c3 (patch)
tree81ac23f5eb10cb52ef081be59723a8c28fa46d51 /source4/lib/substitute.c
parent3fb57e31a0f1e4851dcd1f4e6d87fc320f6fa703 (diff)
downloadsamba-79ae828819193dd9ed5e060f78a88752e30bd1c3.tar.gz
samba-79ae828819193dd9ed5e060f78a88752e30bd1c3.tar.bz2
samba-79ae828819193dd9ed5e060f78a88752e30bd1c3.zip
r2542: I really don't like the 'substitute' code, and I particularly don't
like it in the mainline code (outside the smb.conf magic). We will need to have a more useful 'helper' routine for this, but for now we at least get a reliable IP address. Also remove the unused 'socket' structure in the smb server - it seems to have been replaced by the socket library. Andrew Bartlett (This used to be commit d8fd19a2020da6cce691c0db2b00f42e31d672cc)
Diffstat (limited to 'source4/lib/substitute.c')
-rw-r--r--source4/lib/substitute.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/source4/lib/substitute.c b/source4/lib/substitute.c
index 7d3997ecd7..3de2966f56 100644
--- a/source4/lib/substitute.c
+++ b/source4/lib/substitute.c
@@ -52,18 +52,6 @@ static void setup_string(char **dest, const char *str)
(*dest) = s;
}
-void sub_set_local_machine(const char *local_machine)
-{
- if (!sub) return;
- setup_string(&sub->local_machine, local_machine);
-}
-
-void sub_set_remote_machine(const char *remote_machine)
-{
- if (!sub) return;
- setup_string(&sub->remote_machine, remote_machine);
-}
-
void sub_set_remote_proto(const char *str)
{
if (!sub) return;
@@ -76,19 +64,6 @@ void sub_set_remote_arch(const char *str)
setup_string(&sub->remote_arch, str);
}
-const char *sub_get_remote_machine(void)
-{
- if (!sub) return "UNKNOWN";
- return sub->remote_machine;
-}
-
-const char *sub_get_local_machine(void)
-{
- if (!sub) return "UNKNOWN";
- return sub->local_machine;
-}
-
-
/*
setup the string used by %U substitution
*/