[PATCH 2/4] Fixed compiler warnings.

Ralf Habacker ralf.habacker at freenet.de
Mon Jun 7 06:46:33 PDT 2010


---
 dbus/dbus-file-win.c       |    4 +---
 tools/dbus-print-message.c |    2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dbus/dbus-file-win.c b/dbus/dbus-file-win.c
index 932b459..4f0b075 100644
--- a/dbus/dbus-file-win.c
+++ b/dbus/dbus-file-win.c
@@ -68,8 +68,6 @@ _dbus_file_read (HANDLE            hnd,
 
   data = _dbus_string_get_data_len (buffer, start, count);
 
- again:
-
   result = ReadFile (hnd, data, count, &bytes_read, NULL);
   if (result == 0)
     {
@@ -114,7 +112,7 @@ _dbus_file_get_contents (DBusString       *str,
   DWORD fsize;
   DWORD fsize_hi;
   int orig_len;
-  int total;
+  unsigned int total;
   const char *filename_c;
 
   _DBUS_ASSERT_ERROR_IS_CLEAR (error);
diff --git a/tools/dbus-print-message.c b/tools/dbus-print-message.c
index 0b8ca26..75d00ac 100644
--- a/tools/dbus-print-message.c
+++ b/tools/dbus-print-message.c
@@ -56,7 +56,7 @@ indent (int depth)
 static void
 print_hex (unsigned char *bytes, unsigned int len, int depth)
 {
-  int i, columns;
+  unsigned int i, columns;
 
   printf ("array of bytes [\n");
 
-- 
1.7.0.2.msysgit.0


--------------000706050204040501020404
Content-Type: text/x-patch;
 name="0001-Minor-include-file-fix.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="0001-Minor-include-file-fix.patch"



More information about the dbus mailing list