atoms: drop useless strlen usage

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-18 13:37:01 +02:00
parent 9d48852fed
commit 24b82772d2
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ echo '{'
while read atom
do
echo ' { "'$atom'", &'$atom' },'
echo ' { "'$atom'", sizeof("'$atom'") - 1, &'$atom' },'
done < $1
echo '};'

View File

@ -25,6 +25,7 @@
typedef struct
{
const char *name;
size_t len;
xcb_atom_t *atom;
} atom_item_t;
@ -42,7 +43,7 @@ atoms_init(xcb_connection_t *conn)
for(i = 0; i < countof(ATOM_LIST); i++)
cs[i] = xcb_intern_atom_unchecked(conn,
false,
a_strlen(ATOM_LIST[i].name),
ATOM_LIST[i].len,
ATOM_LIST[i].name);
for(i = 0; i < countof(ATOM_LIST); i++)