diff options
author | Tim Potter <tpot@samba.org> | 2000-11-04 18:44:34 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-11-04 18:44:34 +0000 |
commit | 61b659faafdb33097e664d034f10b930bf9f6a0b (patch) | |
tree | 947baf067438c87ed1fd58c9fabc3fa1aaaa009a | |
parent | 34b397f8ac0afe36bd9b12d87b8080a1e286072d (diff) | |
download | samba-61b659faafdb33097e664d034f10b930bf9f6a0b.tar.gz samba-61b659faafdb33097e664d034f10b930bf9f6a0b.tar.bz2 samba-61b659faafdb33097e664d034f10b930bf9f6a0b.zip |
Fix some compiler warnings.
(This used to be commit 852de9226d50ccac71ec1691052a6e395283ca56)
-rw-r--r-- | source3/lib/messages.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 53c911e8b0..98e9a47179 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -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; } |