diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-02 12:14:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:32 -0500 |
commit | 20c550d87fae703dd8b84cb8f97c3bd32054d35a (patch) | |
tree | a1116d18d74cb544882888d94710ca07e25c9e36 /source4/lib | |
parent | a1cee786f053ec2ca8ee5bfa06211ea1824d4405 (diff) | |
download | samba-20c550d87fae703dd8b84cb8f97c3bd32054d35a.tar.gz samba-20c550d87fae703dd8b84cb8f97c3bd32054d35a.tar.bz2 samba-20c550d87fae703dd8b84cb8f97c3bd32054d35a.zip |
r2783: got rid of the unused remote architecture detection code
(This used to be commit 9a04664531601b8251dbf6a0922ab48e675adb90)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/util.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/source4/lib/util.c b/source4/lib/util.c index 2862a40bd7..94b01f7501 100644 --- a/source4/lib/util.c +++ b/source4/lib/util.c @@ -575,46 +575,6 @@ BOOL fcntl_lock(int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type) return(True); } -/******************************************************************* - Set the remote_arch string based on an enum. This is used in places -where we desperately need to distinguish client type. -********************************************************************/ -void set_remote_arch(struct smbsrv_connection *smb, enum remote_arch_types type) -{ - const char *arch; - - smb->negotiate.ra_type = type; - switch (type) { - case RA_WFWG: - arch = "WfWg"; - return; - case RA_OS2: - arch = "OS2"; - return; - case RA_WIN95: - arch = "Win95"; - return; - case RA_WINNT: - arch = "WinNT"; - return; - case RA_WIN2K: - arch = "Win2K"; - return; - case RA_WINXP: - arch = "WinXP"; - return; - case RA_SAMBA: - arch = "Samba"; - return; - default: - smb->negotiate.ra_type = RA_UNKNOWN; - arch = "UNKNOWN"; - break; - } - - sub_set_remote_arch(arch); -} - static void print_asc(int level, const uint8_t *buf,int len) { |