[SCM] Samba Shared Repository - branch v3-5-test updated
Jeremy Allison
jra at samba.org
Wed Nov 18 22:49:06 MST 2009
The branch, v3-5-test has been updated
via 5caad32... s3:load_interfaces(): use function gfree_interfaces() that we have.
from 7d68566... s3: Replace some create_synthetic_smb_fname() calls
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test
- Log -----------------------------------------------------------------
commit 5caad323a212a3f046adb7e5a7d86edc819a2d3a
Author: Michael Adam <obnox at samba.org>
Date: Wed Nov 18 15:19:09 2009 +0100
s3:load_interfaces(): use function gfree_interfaces() that we have.
To reduce code duplication.
Michael
(cherry picked from commit aea3a8f50131744f8393d0179cd04a1b97982028)
-----------------------------------------------------------------------
Summary of changes:
source3/lib/interface.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index 4a8a154..79c62a7 100644
--- a/source3/lib/interface.c
+++ b/source3/lib/interface.c
@@ -496,15 +496,7 @@ void load_interfaces(void)
const char **ptr = lp_interfaces();
int i;
- SAFE_FREE(probed_ifaces);
-
- /* dump the current interfaces if any */
- while (local_interfaces) {
- struct interface *iface = local_interfaces;
- DLIST_REMOVE(local_interfaces, local_interfaces);
- SAFE_FREE(iface->name);
- SAFE_FREE(iface);
- }
+ gfree_interfaces();
/* Probe the kernel for interfaces */
total_probed = get_interfaces(talloc_tos(), &ifaces);
--
Samba Shared Repository
More information about the samba-cvs
mailing list