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/nmbd/nmbd_synclists.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nmbd') diff --git a/source3/nmbd/nmbd_synclists.c b/source3/nmbd/nmbd_synclists.c index e015f7ba71..1adccbd7d3 100644 --- a/source3/nmbd/nmbd_synclists.c +++ b/source3/nmbd/nmbd_synclists.c @@ -81,7 +81,7 @@ static void sync_child(char *name, int nm_type, in_addr_to_sockaddr_storage(&ss, ip); - status = cli_connect_nb(name, &ss, 139, nm_type, + status = cli_connect_nb(name, &ss, NBT_SMB_PORT, nm_type, get_local_machine_name(), SMB_SIGNING_DEFAULT, 0, &cli); if (!NT_STATUS_IS_OK(status)) { -- cgit