diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2006-07-26 13:32:44 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2006-07-26 13:32:44 +0000 | 
| commit | b102348e988e4abc5d579ce13c067ce2c885aaf7 (patch) | |
| tree | f7df67ce818aa8720f956171765889684c528ee1 /hidd/fakehid.c | |
| parent | abaf87668c896d8cebcfa1081eec195cd0008740 (diff) | |
Fix declared with attribute warn_unused_result errors
Diffstat (limited to 'hidd/fakehid.c')
| -rw-r--r-- | hidd/fakehid.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/hidd/fakehid.c b/hidd/fakehid.c index 0d87335b..138d2b48 100644 --- a/hidd/fakehid.c +++ b/hidd/fakehid.c @@ -47,6 +47,7 @@  static void event(int fd, uint16_t type, uint16_t code, int32_t value)  {  	struct uinput_event event; +	int len;  	if (fd <= fileno(stderr))  		return; @@ -56,7 +57,7 @@ static void event(int fd, uint16_t type, uint16_t code, int32_t value)  	event.code = code;  	event.value = value; -	write(fd, &event, sizeof(event)); +	len = write(fd, &event, sizeof(event));  }  static void func(int fd) | 
