Ecore: Fix warning: large integer implicitly truncated to unsigned type inecore_x/xcb

xcb_get_property_unchecked() requires an uint32_t as last parameter, so use
UINT_MAX instead of LONG_MAX

Patch from OpenBSD via Jonathan Armani


SVN revision: 65073
This commit is contained in:
Vincent Torri 2011-11-11 18:51:53 +00:00
parent d8abb0f237
commit 966067b4f3
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ ecore_x_mwm_hints_get(Ecore_X_Window win,
cookie =
xcb_get_property_unchecked(_ecore_xcb_conn, 0, win,
ECORE_X_ATOM_MOTIF_WM_HINTS,
ECORE_X_ATOM_MOTIF_WM_HINTS, 0, LONG_MAX);
ECORE_X_ATOM_MOTIF_WM_HINTS, 0, UINT_MAX);
reply = xcb_get_property_reply(_ecore_xcb_conn, cookie, NULL);
if (!reply) return EINA_FALSE;
if ((reply->format != 32) || (reply->value_len == 0))

View File

@ -405,7 +405,7 @@ ecore_x_window_prop_property_get(Ecore_X_Window win,
cookie =
xcb_get_property_unchecked(_ecore_xcb_conn, 0, win,
property, type, 0, LONG_MAX);
property, type, 0, UINT_MAX);
reply = xcb_get_property_reply(_ecore_xcb_conn, cookie, NULL);
if (!reply) return 0;
if ((reply->format != size) || (reply->value_len == 0))