summaryrefslogtreecommitdiff
path: root/src/udev/udev-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r--src/udev/udev-event.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index ec2217e1bb..818448a573 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -36,8 +36,7 @@
#include "udev.h"
-struct udev_event *udev_event_new(struct udev_device *dev)
-{
+struct udev_event *udev_event_new(struct udev_device *dev) {
struct udev *udev = udev_device_get_udev(dev);
struct udev_event *event;
@@ -53,8 +52,7 @@ struct udev_event *udev_event_new(struct udev_device *dev)
return event;
}
-void udev_event_unref(struct udev_event *event)
-{
+void udev_event_unref(struct udev_event *event) {
if (event == NULL)
return;
udev_list_cleanup(&event->run_list);
@@ -64,8 +62,7 @@ void udev_event_unref(struct udev_event *event)
free(event);
}
-size_t udev_event_apply_format(struct udev_event *event, const char *src, char *dest, size_t size)
-{
+size_t udev_event_apply_format(struct udev_event *event, const char *src, char *dest, size_t size) {
struct udev_device *dev = event->dev;
enum subst_type {
SUBST_UNKNOWN,
@@ -379,8 +376,7 @@ out:
static int spawn_exec(struct udev_event *event,
const char *cmd, char *const argv[], char **envp, const sigset_t *sigmask,
- int fd_stdout, int fd_stderr)
-{
+ int fd_stdout, int fd_stderr) {
int err;
int fd;
@@ -426,8 +422,7 @@ static void spawn_read(struct udev_event *event,
usec_t timeout_usec,
const char *cmd,
int fd_stdout, int fd_stderr,
- char *result, size_t ressize)
-{
+ char *result, size_t ressize) {
size_t respos = 0;
int fd_ep = -1;
struct epoll_event ep_outpipe, ep_errpipe;
@@ -625,8 +620,7 @@ out:
return err;
}
-int udev_build_argv(struct udev *udev, char *cmd, int *argc, char *argv[])
-{
+int udev_build_argv(struct udev *udev, char *cmd, int *argc, char *argv[]) {
int i = 0;
char *pos;
@@ -763,8 +757,7 @@ out:
int udev_rules_assigning_name_to(struct udev_rules *rules,const char *match_name);
#endif
-static int rename_netif_dev_fromname_toname(struct udev_device *dev,const char *oldname,const char *newname)
-{
+static int rename_netif_dev_fromname_toname(struct udev_device *dev,const char *oldname,const char *newname) {
int sk;
struct ifreq ifr;
int err;
@@ -833,8 +826,7 @@ out:
return err;
}
-static int rename_netif(struct udev_event *event)
-{
+static int rename_netif(struct udev_event *event) {
return rename_netif_dev_fromname_toname(event->dev,udev_device_get_sysname(event->dev),event->name);
}