diff options
author | Christopher R. Hertel <crh@samba.org> | 2000-12-30 23:17:30 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 2000-12-30 23:17:30 +0000 |
commit | e651d1d642cd1bfac11bec81a30915b95d4424c8 (patch) | |
tree | 0fbe2b95fa47fe222b64fce7f23e0783534d4270 | |
parent | 51c0436a50e9f9274cee9de043bbefc93aff8011 (diff) | |
download | samba-e651d1d642cd1bfac11bec81a30915b95d4424c8.tar.gz samba-e651d1d642cd1bfac11bec81a30915b95d4424c8.tar.xz samba-e651d1d642cd1bfac11bec81a30915b95d4424c8.zip |
The line was:
struct tdb_traverse_lock tl = { tdb->travlocks.next, 0, 0 };
The IRIX compiler complained that the first initialization value was not a
constant and errored out. Here's what it looks like now:
struct tdb_traverse_lock tl = { NULL, 0, 0 };
int ret, count = 0;
/* This was in the initializaton, above, but the IRIX compiler
* did not like it. crh
*/
tl.next = tdb->travlocks.next;
That worked.
Chris -)-----
-rw-r--r-- | source/tdb/tdb.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/tdb/tdb.c b/source/tdb/tdb.c index afc87b7da07..474d0c7adb3 100644 --- a/source/tdb/tdb.c +++ b/source/tdb/tdb.c @@ -850,9 +850,14 @@ int tdb_traverse(TDB_CONTEXT *tdb, tdb_traverse_func fn, void *state) { TDB_DATA key, dbuf; struct list_struct rec; - struct tdb_traverse_lock tl = { tdb->travlocks.next, 0, 0 }; + struct tdb_traverse_lock tl = { NULL, 0, 0 }; int ret, count = 0; + /* This was in the initializaton, above, but the IRIX compiler + * did not like it. crh + */ + tl.next = tdb->travlocks.next; + /* fcntl locks don't stack: beware traverse inside traverse */ tdb->travlocks.next = &tl; |