atoms: drop useless strlen usage
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
9d48852fed
commit
24b82772d2
|
@ -14,7 +14,7 @@ echo '{'
|
||||||
|
|
||||||
while read atom
|
while read atom
|
||||||
do
|
do
|
||||||
echo ' { "'$atom'", &'$atom' },'
|
echo ' { "'$atom'", sizeof("'$atom'") - 1, &'$atom' },'
|
||||||
done < $1
|
done < $1
|
||||||
|
|
||||||
echo '};'
|
echo '};'
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
|
size_t len;
|
||||||
xcb_atom_t *atom;
|
xcb_atom_t *atom;
|
||||||
} atom_item_t;
|
} atom_item_t;
|
||||||
|
|
||||||
|
@ -42,7 +43,7 @@ atoms_init(xcb_connection_t *conn)
|
||||||
for(i = 0; i < countof(ATOM_LIST); i++)
|
for(i = 0; i < countof(ATOM_LIST); i++)
|
||||||
cs[i] = xcb_intern_atom_unchecked(conn,
|
cs[i] = xcb_intern_atom_unchecked(conn,
|
||||||
false,
|
false,
|
||||||
a_strlen(ATOM_LIST[i].name),
|
ATOM_LIST[i].len,
|
||||||
ATOM_LIST[i].name);
|
ATOM_LIST[i].name);
|
||||||
|
|
||||||
for(i = 0; i < countof(ATOM_LIST); i++)
|
for(i = 0; i < countof(ATOM_LIST); i++)
|
||||||
|
|
Loading…
Reference in New Issue