summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-10-01 20:34:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:52 -0500
commit31441aaa137145511a2c09dd540d46876df56701 (patch)
treef9592ea9d786f3ea58ace1d5ffaaf7e547f41e3f /source3/param
parentf219db7d698438969be95186dad7dc60512b86a9 (diff)
downloadsamba-31441aaa137145511a2c09dd540d46876df56701.tar.gz
samba-31441aaa137145511a2c09dd540d46876df56701.tar.bz2
samba-31441aaa137145511a2c09dd540d46876df56701.zip
r2768: BUG 1519: save the hostname used in the open_printer_ex() for later reuse when filling in the spolss replies (also gets rid of get_called_name()
(This used to be commit 57db8ca91f52329c7f8985c04463b6b69015b0c4)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 24811af37d..726ae5fe56 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4267,28 +4267,6 @@ void lp_set_logfile(const char *name)
}
/*******************************************************************
- Return the NetBIOS called name, or my IP - but never global_myname().
-********************************************************************/
-
-const char *get_called_name(void)
-{
- extern fstring local_machine;
- static fstring called_name;
-
- if ( (!*local_machine) ||
- (client_socket_port() == 445) ) {
- /* Everybody coming in on 445 should be able to live with the
- * IP address */
- fstrcpy(called_name, client_socket_addr());
- DEBUG(8,("get_called_name: assuming that client used IP address [%s] as called name.\n",
- called_name));
- return called_name;
- }
-
- return local_machine;
-}
-
-/*******************************************************************
Return the max print jobs per queue.
********************************************************************/