| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-01-07 20:24:57 +0100 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-01-07 20:24:57 +0100 | 
| commit | d65e74a20a50e2161e5ff2007f53aea8e3b105e2 (patch) | |
| tree | 63f3b64a1cda521e44e452199ec99ad8865360bb /src | |
| parent | 8e624e9919040e2ec99be764394bb33a2bc77fd9 (diff) | |
...
Diffstat (limited to 'src')
| -rw-r--r-- | src/device/physical/physical_device.c | 15 | ||||
| -rw-r--r-- | src/device/virtual/virtual_device.c | 2 | 
2 files changed, 13 insertions, 4 deletions
| diff --git a/src/device/physical/physical_device.c b/src/device/physical/physical_device.c index 24c73af..cf74b3c 100644 --- a/src/device/physical/physical_device.c +++ b/src/device/physical/physical_device.c @@ -12,6 +12,8 @@  #include <relabsd/config/parameters.h> +#include <relabsd/server.h> +  #include <relabsd/device/physical_device.h>  /******************************************************************************/ @@ -200,11 +202,18 @@ int relabsd_physical_device_read           device->is_late = 0;           return -1; -   } -   RELABSD_S_PROG_ERROR("Reached what is supposed to be dead code."); +      default: +         RELABSD_FATAL +         ( +            "Unable to access the physical device: %s.", +            strerror(-returned_code) +         ); -   return -1; +         relabsd_server_interrupt(); + +         return -1; +   }  }  int relabsd_physical_device_is_late diff --git a/src/device/virtual/virtual_device.c b/src/device/virtual/virtual_device.c index 6866d65..bd73743 100644 --- a/src/device/virtual/virtual_device.c +++ b/src/device/virtual/virtual_device.c @@ -213,7 +213,7 @@ int relabsd_virtual_device_create_from        (           physical_device_libevdev,           /* See top of the file. */ -         RELABSD_UINPUT_OPEN_MANAGED, +         LIBEVDEV_UINPUT_OPEN_MANAGED,           &(device->uinput_device)        ); | 


