diff options
| author | Ralf Habacker <ralf.habacker@freenet.de> | 2013-08-27 17:32:56 +0200 |
|---|---|---|
| committer | Ralf Habacker <ralf.habacker@freenet.de> | 2013-08-28 10:43:28 +0200 |
| commit | e1bc0164589193f8b5997580f60a5874065357fe (patch) | |
| tree | 3f1f51ede879ac6ee7d0e658e110416ca543c4f8 | |
| parent | 28f15d8b219877ac2dca771e823188d018db2db0 (diff) | |
Fixed gcc 4.8.1 -Wformat warnings on windows.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=67072
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| -rw-r--r-- | dbus/dbus-sysdeps-win.c | 8 | ||||
| -rw-r--r-- | dbus/dbus-sysdeps-win.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 38758bd4..efeb2a61 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -165,7 +165,7 @@ get_pid_from_extended_tcp_table(int peer_port) } else { - _dbus_verbose ("unexpected error returned from GetExtendedTcpTable %d\n", errorCode); + _dbus_win_warn_win_error ("unexpected error returned from GetExtendedTcpTable", errorCode); return 0; } @@ -188,7 +188,7 @@ get_pid_from_extended_tcp_table(int peer_port) } dbus_free (tcp_table); - _dbus_verbose ("got pid %d\n", (int)result); + _dbus_verbose ("got pid %lu\n", result); return result; } @@ -236,7 +236,7 @@ get_pid_from_tcp_ex_table(int peer_port) } HeapFree (GetProcessHeap(), 0, tcp_table); - _dbus_verbose ("got pid %d\n", (int)result); + _dbus_verbose ("got pid %lu\n", result); return result; } @@ -3840,7 +3840,7 @@ _dbus_win_set_error_from_win_error (DBusError *error, void _dbus_win_warn_win_error (const char *message, - int code) + unsigned long code) { DBusError error; diff --git a/dbus/dbus-sysdeps-win.h b/dbus/dbus-sysdeps-win.h index 5e7f1e46..7cb1b6ff 100644 --- a/dbus/dbus-sysdeps-win.h +++ b/dbus/dbus-sysdeps-win.h @@ -44,7 +44,7 @@ const char* _dbus_win_error_from_last_error (void); void _dbus_win_startup_winsock (void); void _dbus_win_warn_win_error (const char *message, - int code); + unsigned long code); char * _dbus_win_error_string (int error_number); void _dbus_win_free_error_string (char *string); |
