diff options
author | Christopher R. Hertel <crh@samba.org> | 1998-06-09 01:56:18 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 1998-06-09 01:56:18 +0000 |
commit | e420a4bd7d368a0e910893400fb7b46ab8694a08 (patch) | |
tree | e653e7613b5c3fa406864a596e51f42a47d3cb78 /source/nmbd/nmbd_nameregister.c | |
parent | 530b54b8a2234a72d7a12606bff38648e56c5c1c (diff) | |
download | samba-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_nameregister.c')
-rw-r--r-- | source/nmbd/nmbd_nameregister.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/nmbd/nmbd_nameregister.c b/source/nmbd/nmbd_nameregister.c index 8eae5e0f1cd..a4b8d4d65ac 100644 --- a/source/nmbd/nmbd_nameregister.c +++ b/source/nmbd/nmbd_nameregister.c @@ -372,16 +372,16 @@ BOOL refresh_name(struct subnet_record *subrec, struct name_record *namerec, * only be done once). */ - for( i = 0; i < namerec->num_ips; i++) + for( i = 0; i < namerec->data.num_ips; i++) { if(queue_refresh_name( subrec, register_name_response, register_name_timeout_response, - (i == (namerec->num_ips - 1)) ? success_fn : NULL, - (i == (namerec->num_ips - 1)) ? fail_fn : NULL, - (i == (namerec->num_ips - 1)) ? userdata : NULL, + (i == (namerec->data.num_ips - 1)) ? success_fn : NULL, + (i == (namerec->data.num_ips - 1)) ? fail_fn : NULL, + (i == (namerec->data.num_ips - 1)) ? userdata : NULL, namerec, - namerec->ip[i]) == NULL) + namerec->data.ip[i]) == NULL) { DEBUG(0,("refresh_name: Failed to send packet trying to refresh name %s\n", namestr(&namerec->name))); |