diff options
author | Kay Sievers <kay@vrfy.org> | 2014-07-30 09:46:35 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-07-30 09:46:35 -0400 |
commit | 65af29f3f7c43cdcc73fc224cfbf3e1ccbd9dd60 (patch) | |
tree | 3c7e0ca062f4e118378880cc857d071c9ab8920f /src/udev/udev-node.c | |
parent | 471a5f341168cff3f07474b7c4a88779bdd8ca1d (diff) |
udev: place opening { at the same line as the function declaration
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udev-node.c')
-rw-r--r-- | src/udev/udev-node.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c index e4efd242db..14dd88dd43 100644 --- a/src/udev/udev-node.c +++ b/src/udev/udev-node.c @@ -32,8 +32,7 @@ #include "udev.h" #include "smack-util.h" -static int node_symlink(struct udev_device *dev, const char *node, const char *slink) -{ +static int node_symlink(struct udev_device *dev, const char *node, const char *slink) { struct stat stats; char target[UTIL_PATH_SIZE]; char *s; @@ -126,8 +125,7 @@ exit: } /* find device node of device with highest priority */ -static const char *link_find_prioritized(struct udev_device *dev, bool add, const char *stackdir, char *buf, size_t bufsize) -{ +static const char *link_find_prioritized(struct udev_device *dev, bool add, const char *stackdir, char *buf, size_t bufsize) { struct udev *udev = udev_device_get_udev(dev); DIR *dir; int priority = 0; @@ -180,8 +178,7 @@ static const char *link_find_prioritized(struct udev_device *dev, bool add, cons } /* manage "stack of names" with possibly specified device priorities */ -static void link_update(struct udev_device *dev, const char *slink, bool add) -{ +static void link_update(struct udev_device *dev, const char *slink, bool add) { struct udev *udev = udev_device_get_udev(dev); char name_enc[UTIL_PATH_SIZE]; char filename[UTIL_PATH_SIZE * 2]; @@ -224,8 +221,7 @@ static void link_update(struct udev_device *dev, const char *slink, bool add) } } -void udev_node_update_old_links(struct udev_device *dev, struct udev_device *dev_old) -{ +void udev_node_update_old_links(struct udev_device *dev, struct udev_device *dev_old) { struct udev_list_entry *list_entry; /* update possible left-over symlinks */ @@ -356,8 +352,7 @@ void udev_node_add(struct udev_device *dev, bool apply, link_update(dev, udev_list_entry_get_name(list_entry), true); } -void udev_node_remove(struct udev_device *dev) -{ +void udev_node_remove(struct udev_device *dev) { struct udev_list_entry *list_entry; char filename[UTIL_PATH_SIZE]; |