From: Andreas Schneider Date: Thu, 25 Apr 2024 09:49:31 +0000 (+0200) Subject: s3:nmbd: Remove trailing spaces in nmbd_synclists.c X-Git-Tag: tdb-1.4.11~916 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8eabee18bd0c634f8b8b5ba878c395daea609b0;p=thirdparty%2Fsamba.git s3:nmbd: Remove trailing spaces in nmbd_synclists.c Signed-off-by: Andreas Schneider Reviewed-by: Volker Lendecke --- diff --git a/source3/nmbd/nmbd_synclists.c b/source3/nmbd/nmbd_synclists.c index f94e41c9af4..7f514dfe142 100644 --- a/source3/nmbd/nmbd_synclists.c +++ b/source3/nmbd/nmbd_synclists.c @@ -1,4 +1,4 @@ -/* +/* Unix SMB/CIFS implementation. NBT netbios routines and daemon - version 2 Copyright (C) Andrew Tridgell 1994-1998 @@ -67,7 +67,7 @@ static void callback(const char *sname, uint32_t stype, do a NetServerEnum and record the results in fname ******************************************************************/ -static void sync_child(char *name, int nm_type, +static void sync_child(char *name, int nm_type, char *workgroup, struct in_addr ip, bool local, bool servers, char *fname) @@ -119,13 +119,13 @@ static void sync_child(char *name, int nm_type, /* Fetch a workgroup list. */ cli_NetServerEnum(cli, unix_workgroup, - local_type|SV_TYPE_DOMAIN_ENUM, + local_type|SV_TYPE_DOMAIN_ENUM, callback, NULL); /* Now fetch a server list. */ if (servers) { fstrcpy(unix_workgroup, workgroup); - cli_NetServerEnum(cli, unix_workgroup, + cli_NetServerEnum(cli, unix_workgroup, local?SV_TYPE_LOCAL_LIST_ONLY:SV_TYPE_ALL, callback, NULL); } @@ -140,7 +140,7 @@ static void sync_child(char *name, int nm_type, ******************************************************************/ void sync_browse_lists(struct work_record *work, - char *name, int nm_type, + char *name, int nm_type, struct in_addr ip, bool local, bool servers) { struct sync_record *s; @@ -220,7 +220,7 @@ static void complete_one(struct sync_record *s, update_workgroup_ttl(work,lp_max_ttl()); } else { /* Create the workgroup on the subnet. */ - work = create_workgroup_on_subnet(unicast_subnet, + work = create_workgroup_on_subnet(unicast_subnet, sname, lp_max_ttl()); if (work) { /* remember who the master is */ @@ -228,7 +228,7 @@ static void complete_one(struct sync_record *s, } } return; - } + } work = find_workgroup_on_subnet(unicast_subnet, s->workgroup); if (!work) { @@ -248,9 +248,9 @@ static void complete_one(struct sync_record *s, servrec->serv.type = stype; } return; - } + } - /* Create the server in the workgroup. */ + /* Create the server in the workgroup. */ create_server_on_workgroup(work, sname,stype, lp_max_ttl(), comment); }