mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-03 19:48:28 +02:00
Trivial -Wsign-compare fixes.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=17289 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
073aa59f8c
commit
d0fe556af1
4 changed files with 6 additions and 5 deletions
|
|
@ -848,7 +848,8 @@ bus_match_rule_parse_arg_match (BusMatchRule *rule,
|
|||
|
||||
if (end != length)
|
||||
{
|
||||
if ((end + strlen ("path")) == length &&
|
||||
int len1 = strlen ("path");
|
||||
if ((end + len1) == length &&
|
||||
_dbus_string_ends_with_c_str (&key_str, "path"))
|
||||
{
|
||||
is_path = TRUE;
|
||||
|
|
|
|||
|
|
@ -602,7 +602,7 @@ static void
|
|||
close_unix_fds(int *fds, unsigned *n_fds)
|
||||
{
|
||||
DBusError e;
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
if (*n_fds <= 0)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ indent (int depth)
|
|||
|
||||
static void
|
||||
print_hex (const unsigned char *bytes,
|
||||
int len,
|
||||
unsigned int len,
|
||||
int depth)
|
||||
{
|
||||
unsigned int i, columns;
|
||||
|
|
|
|||
|
|
@ -155,9 +155,9 @@ dbus_test_tool_spam (int argc, char **argv)
|
|||
int i;
|
||||
int count = 1;
|
||||
int sent = 0;
|
||||
int sent_in_this_conn = 0;
|
||||
unsigned int sent_in_this_conn = 0;
|
||||
int received = 0;
|
||||
int received_before_this_conn = 0;
|
||||
unsigned int received_before_this_conn = 0;
|
||||
int queue_len = 1;
|
||||
const char *payload = NULL;
|
||||
char *payload_buf = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue