]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Fix warning: conversion to 'DWORD' from 'int' may change the sign of the result ...
authorRalf Habacker <ralf.habacker@freenet.de>
Tue, 3 Mar 2015 16:16:51 +0000 (17:16 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Wed, 4 Mar 2015 11:32:53 +0000 (12:32 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89284
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
tools/tool-common.c
tools/tool-common.h

index ee5099dba954df88f93f0a3dc6a4bfbe5b37e23a..497a50978464d4ed73fce5150f05784313a8d80c 100644 (file)
@@ -40,7 +40,7 @@
 /* a hack to avoid having to depend on the static -util version of libdbus;
  * it's useful for ancillary programs to be able to use the shared library */
 void
-tool_millisleep (int ms)
+tool_millisleep (unsigned int ms)
 {
 #ifdef DBUS_WIN
   Sleep (ms);
index c5984821ea047805a0fe2a680b593acfda1feb05..8659011c4e79c56c764facefc27b508d7f0407df 100644 (file)
@@ -32,7 +32,7 @@
 #define VERBOSE(...) do {} while (0)
 #endif
 
-void tool_millisleep (int ms);
+void tool_millisleep (unsigned int ms);
 void tool_oom (const char *doing) _DBUS_GNUC_NORETURN;
 dbus_bool_t tool_write_all (int fd, const void *buf, size_t size);