The line was:
authorChristopher R. Hertel <crh@samba.org>
Sat, 30 Dec 2000 23:17:30 +0000 (23:17 +0000)
committerChristopher R. Hertel <crh@samba.org>
Sat, 30 Dec 2000 23:17:30 +0000 (23:17 +0000)
        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 -)-----
(This used to be commit e651d1d642cd1bfac11bec81a30915b95d4424c8)

source3/tdb/tdb.c

index afc87b7da0735d17ebbad9b6efaca0a341706ae1..474d0c7adb321a8603deb59b782943abf9c33121 100644 (file)
@@ -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;