forked from enlightenment/efl
parent
e87f1f0aca
commit
b57eac0726
|
@ -925,9 +925,9 @@ ecore_x_atoms_get(const char **names, int num, Ecore_X_Atom *atoms)
|
||||||
Atom *atoms_int;
|
Atom *atoms_int;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!_ecore_x_disp) return 0;
|
if (!_ecore_x_disp) return;
|
||||||
atoms_int = alloca(num * sizeof(Atom));
|
atoms_int = alloca(num * sizeof(Atom));
|
||||||
XInternAtoms(_ecore_x_disp, names, num, False, atoms_int);
|
XInternAtoms(_ecore_x_disp, (char **)names, num, False, atoms_int);
|
||||||
for (i = 0; i < num; i++)
|
for (i = 0; i < num; i++)
|
||||||
atoms[i] = atoms_int[i];
|
atoms[i] = atoms_int[i];
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,7 +197,7 @@ _ecore_x_atoms_init(void)
|
||||||
num = sizeof(items) / sizeof(Atom_Item);
|
num = sizeof(items) / sizeof(Atom_Item);
|
||||||
atoms = alloca(num * sizeof(Atom));
|
atoms = alloca(num * sizeof(Atom));
|
||||||
names = alloca(num * sizeof(char *));
|
names = alloca(num * sizeof(char *));
|
||||||
for (i = 0; i < num; i++) names[i] = items[i].name;
|
for (i = 0; i < num; i++) names[i] = (char *)items[i].name;
|
||||||
XInternAtoms(_ecore_x_disp, names, num, False, atoms);
|
XInternAtoms(_ecore_x_disp, names, num, False, atoms);
|
||||||
for (i = 0; i < num; i++) *(items[i].atom) = atoms[i];
|
for (i = 0; i < num; i++) *(items[i].atom) = atoms[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue