ecore-x: Fix compiler warnings about return values
This is an "oopsie" fix from my previous commit wrt adding EINA_SAFETY checks. I made an oopsie and didn't realize that these 2 functions were expecting int returns. @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
adeb28a1c0
commit
43fa91f428
|
@ -1109,7 +1109,7 @@ ecore_x_dpi_get(void)
|
|||
Screen *s;
|
||||
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
EINA_SAFETY_ON_NULL_RETURN(_ecore_x_disp);
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(_ecore_x_disp, 0);
|
||||
s = DefaultScreenOfDisplay(_ecore_x_disp);
|
||||
if (s->mwidth <= 0)
|
||||
return 75;
|
||||
|
|
|
@ -45,11 +45,9 @@ EAPI Ecore_X_Atom
|
|||
ecore_x_atom_get(const char *name)
|
||||
{
|
||||
Ecore_X_Atom atom;
|
||||
if (!_ecore_x_disp)
|
||||
return 0;
|
||||
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
EINA_SAFETY_ON_NULL_RETURN(_ecore_x_disp);
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(_ecore_x_disp, 0);
|
||||
atom = XInternAtom(_ecore_x_disp, name, False);
|
||||
if (_ecore_xlib_sync) ecore_x_sync();
|
||||
return atom;
|
||||
|
|
Loading…
Reference in New Issue