summaryrefslogtreecommitdiffstats
path: root/source/nmbd/nmbd_become_lmb.c
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>1998-06-09 01:56:18 +0000
committerChristopher R. Hertel <crh@samba.org>1998-06-09 01:56:18 +0000
commite420a4bd7d368a0e910893400fb7b46ab8694a08 (patch)
treee653e7613b5c3fa406864a596e51f42a47d3cb78 /source/nmbd/nmbd_become_lmb.c
parent530b54b8a2234a72d7a12606bff38648e56c5c1c (diff)
downloadsamba-e420a4bd7d368a0e910893400fb7b46ab8694a08.tar.gz
samba-e420a4bd7d368a0e910893400fb7b46ab8694a08.tar.xz
samba-e420a4bd7d368a0e910893400fb7b46ab8694a08.zip
This is a first step toward moving long namelists into a database. I
split the name_record structure into pieces. The goal is that the key (the name) be separate from the data associated with the key. Databases such as gdbm store information in [key,content] pairs. There is no functional change in with this update. It's just a step in the direction that Jeremy and I have been discussing. Chris -)-----
Diffstat (limited to 'source/nmbd/nmbd_become_lmb.c')
-rw-r--r--source/nmbd/nmbd_become_lmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nmbd/nmbd_become_lmb.c b/source/nmbd/nmbd_become_lmb.c
index ffa3b38cba6..b97da7d8b4e 100644
--- a/source/nmbd/nmbd_become_lmb.c
+++ b/source/nmbd/nmbd_become_lmb.c
@@ -67,7 +67,7 @@ static void remove_permanent_name_from_unicast( struct subnet_record *subrec,
{
/* Remove this broadcast subnet IP address from the name. */
remove_ip_from_name_record( namerec, subrec->myip);
- if(namerec->num_ips == 0)
+ if(namerec->data.num_ips == 0)
remove_name_from_namelist( unicast_subnet, namerec);
}
}