The branch, v3-0-test has been updated
       via  69b745ec32672762c89fffc77b860eab17c95761 (commit)
      from  2c01540a763f19c2d4c658607efb16285a1e25a5 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-0-test


- Log -----------------------------------------------------------------
commit 69b745ec32672762c89fffc77b860eab17c95761
Author: Günther Deschner <[EMAIL PROTECTED]>
Date:   Tue Jan 29 23:53:49 2008 +0100

    Fix build warning.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/tdb/common/io.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/tdb/common/io.c b/source/tdb/common/io.c
index 01ada76..4b7e33a 100644
--- a/source/tdb/common/io.c
+++ b/source/tdb/common/io.c
@@ -95,7 +95,7 @@ static int tdb_write(struct tdb_context *tdb, tdb_off_t off,
                        /* try once more */
                        TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_write: wrote only "
                                 "%d of %d bytes at %d, trying once more\n",
-                                written, len, off));
+                                (uint32_t)written, len, off));
                        errno = ENOSPC;
                        written = pwrite(tdb->fd, (void *)((char *)buf+written),
                                         len-written,
@@ -275,11 +275,12 @@ 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", (uint32_t)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",
+                               (uint32_t)written, (uint32_t)n));
                }
                addition -= written;
                size += written;


-- 
Samba Shared Repository

Reply via email to