From cacc3e18885f55a49a066d5e3eb602473ea76898 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 15 Mar 2005 20:27:17 +0000 Subject: r5807: fix segfault after compiler warning clean up (and cleanup another warning) (This used to be commit 2dae527e217ff9da2ad9f434bf1280744e93fad7) --- source3/printing/printing.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/printing/printing.c b/source3/printing/printing.c index b45a31a1c7..26d4311770 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -1032,7 +1032,7 @@ static BOOL print_cache_expired(const char *sharename, BOOL check_pending) snprintf(key, sizeof(key), "MSG_PENDING/%s", sharename); if ( check_pending - && tdb_fetch_uint32( pdb->tdb, key, &msg_pending_time ) + && tdb_fetch_uint32( pdb->tdb, key, (uint32*)&msg_pending_time ) && msg_pending_time > 0 && msg_pending_time <= time_now && (time_now - msg_pending_time) < 60 ) @@ -1735,9 +1735,9 @@ static BOOL remove_from_jobs_changed(const char* sharename, uint32 jobid) ZERO_STRUCT(data); - if (tdb_chainlock_with_timeout(pdb->tdb, - string_tdb_data("INFO/jobs_changed"), - 5) == -1) + key = string_tdb_data("INFO/jobs_changed"); + + if (tdb_chainlock_with_timeout(pdb->tdb, key, 5) == -1) goto out; gotlock = True; -- cgit