From b5b204184aa6d0f14e7d3bd08322a98dc4f432e6 Mon Sep 17 00:00:00 2001 From: "Christopher R. Hertel (crh)" Date: Tue, 14 Feb 2012 21:51:35 -0600 Subject: Rename obscure defined constants. Replaced the undescriptive SMB_PORT1 and SMB_PORT2 defined constants with the slightly more descriptive names NBT_SMB_PORT and TCP_SMB_PORT. Also replaced several hard-coded references to the well-known port numbers (139 and 445, respectively) as appropriate. Small changes to clarify some comments regarding the two transport types. Signed-off-by: Simo Sorce Autobuild-User: Simo Sorce Autobuild-Date: Thu Feb 16 08:29:41 CET 2012 on sn-devel-104 --- source3/lib/util_sock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 9ade23c8bc..dcc41bb699 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -482,8 +482,9 @@ int open_socket_in(int type, /* now we've got a socket - we need to bind it */ if (bind(res, (struct sockaddr *)&sock, slen) == -1 ) { - if( DEBUGLVL(dlevel) && (port == SMB_PORT1 || - port == SMB_PORT2 || port == NMB_PORT) ) { + if( DEBUGLVL(dlevel) && (port == NMB_PORT || + port == NBT_SMB_PORT || + port == TCP_SMB_PORT) ) { char addr[INET6_ADDRSTRLEN]; print_sockaddr(addr, sizeof(addr), &sock); -- cgit