summaryrefslogtreecommitdiff
path: root/notifier
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-02-14 20:09:01 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-02-14 20:09:01 +0000
commit076239869a921fff635f11ef9d459eea9a4d8b9f (patch)
tree488c4623be96516015caef72c68f393fcb7f4828 /notifier
parent02f3db8a515647960cda4e85bbc5cd52764a0625 (diff)
Fix build errors on Fedora.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11594 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'notifier')
-rw-r--r--notifier/dbus.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/notifier/dbus.c b/notifier/dbus.c
index ae9655109..03a41681e 100644
--- a/notifier/dbus.c
+++ b/notifier/dbus.c
@@ -417,7 +417,7 @@ main(int argc, /* I - Number of command-line args */
attr = ippFindAttribute(msg, "printer-state", IPP_TAG_ENUM);
if (attr)
{
- dbus_uint32_t val = ippGetInteger(attr, 0);
+ dbus_uint32_t val = (dbus_uint32_t)ippGetInteger(attr, 0);
dbus_message_iter_append_uint32(&iter, &val);
}
else
@@ -446,8 +446,7 @@ main(int argc, /* I - Number of command-line args */
if (i)
*p++ = ',';
- strlcpy(p, ippGetString(attr, i, NULL),
- reasons_length - (p - printer_reasons));
+ strlcpy(p, ippGetString(attr, i, NULL), reasons_length - (size_t)(p - printer_reasons));
p += strlen(p);
}
if (!dbus_message_iter_append_string(&iter, &printer_reasons))
@@ -466,7 +465,7 @@ main(int argc, /* I - Number of command-line args */
IPP_TAG_BOOLEAN);
if (attr)
{
- dbus_bool_t val = ippGetBoolean(attr, 0);
+ dbus_bool_t val = (dbus_bool_t)ippGetBoolean(attr, 0);
dbus_message_iter_append_boolean(&iter, &val);
}
else
@@ -486,7 +485,7 @@ main(int argc, /* I - Number of command-line args */
attr = ippFindAttribute(msg, "notify-job-id", IPP_TAG_INTEGER);
if (attr)
{
- dbus_uint32_t val = ippGetInteger(attr, 0);
+ dbus_uint32_t val = (dbus_uint32_t)ippGetInteger(attr, 0);
dbus_message_iter_append_uint32(&iter, &val);
}
else
@@ -496,7 +495,7 @@ main(int argc, /* I - Number of command-line args */
attr = ippFindAttribute(msg, "job-state", IPP_TAG_ENUM);
if (attr)
{
- dbus_uint32_t val = ippGetInteger(attr, 0);
+ dbus_uint32_t val = (dbus_uint32_t)ippGetInteger(attr, 0);
dbus_message_iter_append_uint32(&iter, &val);
}
else
@@ -519,8 +518,7 @@ main(int argc, /* I - Number of command-line args */
if (i)
*p++ = ',';
- strlcpy(p, ippGetString(attr, i, NULL),
- reasons_length - (p - job_reasons));
+ strlcpy(p, ippGetString(attr, i, NULL), reasons_length - (size_t)(p - job_reasons));
p += strlen(p);
}
if (!dbus_message_iter_append_string(&iter, &job_reasons))
@@ -545,7 +543,7 @@ main(int argc, /* I - Number of command-line args */
IPP_TAG_INTEGER);
if (attr)
{
- dbus_uint32_t val = ippGetInteger(attr, 0);
+ dbus_uint32_t val = (dbus_uint32_t)ippGetInteger(attr, 0);
dbus_message_iter_append_uint32(&iter, &val);
}
else