r24049: Some more 64-bit warnings
authorVolker Lendecke <vlendec@samba.org>
Wed, 25 Jul 2007 18:53:16 +0000 (18:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:59 +0000 (12:28 -0500)
source/lib/tdb/common/io.c
source/smbd/aio.c

index df924a9dcd7ee98beaf15ce35c8f4be353bb45ad..b2b4ee03802ca523eac1ffb8cd0cd67f98c417db 100644 (file)
@@ -255,11 +255,13 @@ static int tdb_expand_file(struct tdb_context *tdb, tdb_off_t size, tdb_off_t ad
                        return -1;
                } else if (written == -1) {
                        TDB_LOG((tdb, TDB_DEBUG_FATAL, "expand_file write of "
-                               "%d bytes failed (%s)\n", n, strerror(errno)));
+                                "%d bytes failed (%s)\n", (int)n,
+                                strerror(errno)));
                        return -1;
                } else if (written != n) {
                        TDB_LOG((tdb, TDB_DEBUG_WARNING, "expand_file: wrote "
-                               "only %d of %d bytes - retrying\n", written,n));
+                                "only %d of %d bytes - retrying\n", (int)written,
+                                (int)n));
                }
                addition -= written;
                size += written;
index afef36f61e05296cf786ed292c751f2699600fc5..f4c4aaec4104fa9e4bef43e605b8c8e5802d8a98 100644 (file)
@@ -415,7 +415,7 @@ static int handle_aio_read_complete(struct aio_extra *aio_ex)
                DEBUG( 3, ( "handle_aio_read_complete file %s max=%d "
                            "nread=%d\n",
                            aio_ex->fsp->fsp_name,
-                           aio_ex->acb.aio_nbytes, (int)nread ) );
+                           (int)aio_ex->acb.aio_nbytes, (int)nread ) );
 
        }
        smb_setlen(inbuf,outbuf,outsize - 4);