Author: jerry
Date: 2005-03-15 20:27:17 +0000 (Tue, 15 Mar 2005)
New Revision: 5807

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5807

Log:
fix segfault after compiler warning clean up (and cleanup another warning)
Modified:
   branches/SAMBA_3_0/source/printing/printing.c


Changeset:
Modified: branches/SAMBA_3_0/source/printing/printing.c
===================================================================
--- branches/SAMBA_3_0/source/printing/printing.c       2005-03-15 20:12:51 UTC 
(rev 5806)
+++ branches/SAMBA_3_0/source/printing/printing.c       2005-03-15 20:27:17 UTC 
(rev 5807)
@@ -1032,7 +1032,7 @@
                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 @@
 
        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;

Reply via email to