diff --git a/evtone.c b/evtone.c index f85fbf6..0469246 100644 --- a/evtone.c +++ b/evtone.c @@ -231,7 +231,7 @@ event.type = EV_SND; event.code = SND_TONE; event.value = tone_hz; - if (write(device, &event, sizeof(struct input_event)) != sizeof(event)) { + if (write(device, &event, sizeof(event)) != sizeof(event)) { fprintf(stdout, "Couldn't write %iHz SND_TONE event to device: %s\n", tone_hz, strerror(errno)); return 1;