From 9ec6e95b046de71c0198cb9d17acc5462dc76c74 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 29 Jul 2014 15:47:41 +0200 Subject: udev: place opening { at the same line as the function declaration --- src/udev/udev-watch.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/udev/udev-watch.c') diff --git a/src/udev/udev-watch.c b/src/udev/udev-watch.c index cbe0c37a4f..061bd05875 100644 --- a/src/udev/udev-watch.c +++ b/src/udev/udev-watch.c @@ -36,8 +36,7 @@ static int inotify_fd = -1; * set to cloexec since we need our children to be able to add * watches for us */ -int udev_watch_init(struct udev *udev) -{ +int udev_watch_init(struct udev *udev) { inotify_fd = inotify_init1(IN_CLOEXEC); if (inotify_fd < 0) log_error("inotify_init failed: %m"); @@ -47,8 +46,7 @@ int udev_watch_init(struct udev *udev) /* move any old watches directory out of the way, and then restore * the watches */ -void udev_watch_restore(struct udev *udev) -{ +void udev_watch_restore(struct udev *udev) { if (inotify_fd < 0) return; @@ -94,8 +92,7 @@ unlink: } } -void udev_watch_begin(struct udev *udev, struct udev_device *dev) -{ +void udev_watch_begin(struct udev *udev, struct udev_device *dev) { char filename[UTIL_PATH_SIZE]; int wd; int r; @@ -121,8 +118,7 @@ void udev_watch_begin(struct udev *udev, struct udev_device *dev) udev_device_set_watch_handle(dev, wd); } -void udev_watch_end(struct udev *udev, struct udev_device *dev) -{ +void udev_watch_end(struct udev *udev, struct udev_device *dev) { int wd; char filename[UTIL_PATH_SIZE]; @@ -142,8 +138,7 @@ void udev_watch_end(struct udev *udev, struct udev_device *dev) udev_device_set_watch_handle(dev, -1); } -struct udev_device *udev_watch_lookup(struct udev *udev, int wd) -{ +struct udev_device *udev_watch_lookup(struct udev *udev, int wd) { char filename[UTIL_PATH_SIZE]; char device[UTIL_NAME_SIZE]; ssize_t len; -- cgit v1.2.3-54-g00ecf