wmaker: fix signedness of variable (Coverity #50082, #50222)
commit243a1924fa61f4c698f09b156db0398834b50d0e
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 29 Nov 2014 15:35:25 +0000 (29 16:35 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 29 Nov 2014 18:44:48 +0000 (29 18:44 +0000)
tree1354925f7eaa6d0f767a87bb278f1a8a44627b53
parent1bd96217090967cb8e0a454c3fcaecd43fb92b3d
wmaker: fix signedness of variable (Coverity #50082, #50222)

Coverity complain that there can be security issues because the variable
'i' is being modified using untrusted data (coming from a file). This is
probably pessimistic, because in the present case we're talking with the
kernel.

Using the correct signedness for the variable should however keep us safe,
and (I hope) make Coverity happy.

Took opportunity to include an error message in case of read problem
because it can help to debug.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/event.c