aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-11-26 06:34:43 +0100
committerMattias Andrée <maandree@kth.se>2016-11-26 06:34:43 +0100
commitcca03d91a5a8a25bce0b84cb74b625f061804a3f (patch)
tree89cfaf8d2e78d3d7bceacf0ef2e6e21fa228f5bc
parentIf send fails with EPIPE, set errno to ECONNRESET instead (diff)
downloadmds-cca03d91a5a8a25bce0b84cb74b625f061804a3f.tar.gz
mds-cca03d91a5a8a25bce0b84cb74b625f061804a3f.tar.bz2
mds-cca03d91a5a8a25bce0b84cb74b625f061804a3f.tar.xz
style
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/mds-libinput.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mds-libinput.c b/src/mds-libinput.c
index 09cf26a..cd87e72 100644
--- a/src/mds-libinput.c
+++ b/src/mds-libinput.c
@@ -87,7 +87,7 @@ static struct udev* udev = NULL;
/**
* List of all opened devices
*/
-static struct libinput_device **devices = NULL;
+static struct libinput_device** devices = NULL;
/**
* The number of element slots allocated for `devices`
@@ -515,7 +515,7 @@ void* event_loop(void* data)
*/
int handle_event(void)
{
- struct libinput_event *ev;
+ struct libinput_event* ev;
if ((errno = -libinput_dispatch(li)))
return -1;
while ((ev = libinput_get_event(li))) {
@@ -552,7 +552,7 @@ int handle_message(void)
* @param userdata Not used
* @return The file descriptor, or `-errno` on error
*/
-int open_restricted(const char *path, int flags, void *userdata)
+int open_restricted(const char* path, int flags, void* userdata)
{
int fd = open(path, flags);
if (fd < 0)
@@ -568,7 +568,7 @@ int open_restricted(const char *path, int flags, void *userdata)
* @param fd The file descriptor of the device
* @param userdata Not used
*/
-void close_restricted(int fd, void *userdata)
+void close_restricted(int fd, void* userdata)
{
close(fd);
(void) userdata;