diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2007-03-09 15:31:27 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2007-03-09 15:31:27 +0000 | 
| commit | 6e3cd312032917facce3e8ef35812b713c16db2b (patch) | |
| tree | 865d3e3c05be928a7fc420f610f50c362ad19783 | |
| parent | dbe77da3c57a741201e91956bd81945578f2b6ab (diff) | |
Fix not result checking warning
| -rw-r--r-- | input/device.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/input/device.c b/input/device.c index 72bab4c0..fb1e5e5d 100644 --- a/input/device.c +++ b/input/device.c @@ -497,13 +497,14 @@ static int decode_key(const char *str)  static void send_event(int fd, uint16_t type, uint16_t code, int32_t value)  {  	struct uinput_event event; +	int err;  	memset(&event, 0, sizeof(event));  	event.type	= type;  	event.code	= code;  	event.value	= value; -	write(fd, &event, sizeof(event)); +	err = write(fd, &event, sizeof(event));  }  static void send_key(int fd, uint16_t key) | 
