Actually set the version field

evemu_new would set the version but the memset in evemu_read() resets it to 0.
afaict from the history, this has never worked but great that we had a tests
that made sure that the broken behaviour passed...

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Only overwrite NULL names on evemu_read()

If a caller has provided a device name to evemu_new(), parse the name but
don't copy it in to the device struct.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
test: link evemu statically into the test

Much easier to debug if we don't have to go through libtool.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
tools: make functions static in evemu-event

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>