Fix some compiler warnings.
authorTim Potter <tpot@samba.org>
Sat, 4 Nov 2000 18:44:34 +0000 (18:44 +0000)
committerTim Potter <tpot@samba.org>
Sat, 4 Nov 2000 18:44:34 +0000 (18:44 +0000)
(This used to be commit 852de9226d50ccac71ec1691052a6e395283ca56)

source3/lib/messages.c

index 53c911e8b032ac22d5d2f0c158910077ca253ddb..98e9a47179089a07dc379cc822c1e7a6826f9046 100644 (file)
@@ -328,7 +328,7 @@ static struct {
 /****************************************************************************
 send one of the messages for the broadcast
 ****************************************************************************/
-static int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *state)
+static int traverse_fn(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *state)
 {
        struct connections_data crec;
 
@@ -345,10 +345,10 @@ use it. When we need efficient broadcast we can add it.
 ****************************************************************************/
 BOOL message_send_all(int msg_type, void *buf, size_t len)
 {
-       TDB_CONTEXT *tdb;
+       TDB_CONTEXT *the_tdb;
 
-       tdb = tdb_open(lock_path("connections.tdb"), 0, 0, O_RDONLY, 0);
-       if (!tdb) {
+       the_tdb = tdb_open(lock_path("connections.tdb"), 0, 0, O_RDONLY, 0);
+       if (!the_tdb) {
                DEBUG(2,("Failed to open connections database in message_send_all\n"));
                return False;
        }
@@ -357,7 +357,7 @@ BOOL message_send_all(int msg_type, void *buf, size_t len)
        msg_all.buf = buf;
        msg_all.len = len;
 
-       tdb_traverse(tdb, traverse_fn, NULL);
-       tdb_close(tdb);
+       tdb_traverse(the_tdb, traverse_fn, NULL);
+       tdb_close(the_tdb);
        return True;
 }