summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2015-03-03 17:16:51 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2015-03-04 12:32:53 +0100
commit50369c1219a495b0afbb0091391f97be6d6eba77 (patch)
tree50abbb96f1b071369ea251a04a4cd6e00e04f650 /tools
parentd0fe556af122f25263204d13e0010e81fb1bc5a0 (diff)
Fix warning: conversion to 'DWORD' from 'int' may change the sign of the result [-Wsign-conversion].
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89284 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/tool-common.c2
-rw-r--r--tools/tool-common.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/tool-common.c b/tools/tool-common.c
index ee5099db..497a5097 100644
--- a/tools/tool-common.c
+++ b/tools/tool-common.c
@@ -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);
diff --git a/tools/tool-common.h b/tools/tool-common.h
index c5984821..8659011c 100644
--- a/tools/tool-common.h
+++ b/tools/tool-common.h
@@ -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);