summaryrefslogtreecommitdiff
path: root/src/udev/udev-builtin-kmod.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-07-29 15:47:41 +0200
committerKay Sievers <kay@vrfy.org>2014-07-29 15:49:25 +0200
commit9ec6e95b046de71c0198cb9d17acc5462dc76c74 (patch)
treefc604ecf68adf028611982dcdb34e2d3763a6631 /src/udev/udev-builtin-kmod.c
parent51f1ec3bbed72d5c0ee0fbcc346ed0fc82d18c96 (diff)
udev: place opening { at the same line as the function declaration
Diffstat (limited to 'src/udev/udev-builtin-kmod.c')
-rw-r--r--src/udev/udev-builtin-kmod.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/udev/udev-builtin-kmod.c b/src/udev/udev-builtin-kmod.c
index 5880c38842..454ee2edff 100644
--- a/src/udev/udev-builtin-kmod.c
+++ b/src/udev/udev-builtin-kmod.c
@@ -33,8 +33,7 @@
static struct kmod_ctx *ctx;
-static int load_module(struct udev *udev, const char *alias)
-{
+static int load_module(struct udev *udev, const char *alias) {
struct kmod_list *list = NULL;
struct kmod_list *l;
int err;
@@ -66,13 +65,11 @@ static int load_module(struct udev *udev, const char *alias)
_printf_(6,0)
static void udev_kmod_log(void *data, int priority, const char *file, int line,
- const char *fn, const char *format, va_list args)
-{
+ const char *fn, const char *format, va_list args) {
udev_main_log(data, priority, file, line, fn, format, args);
}
-static int builtin_kmod(struct udev_device *dev, int argc, char *argv[], bool test)
-{
+static int builtin_kmod(struct udev_device *dev, int argc, char *argv[], bool test) {
struct udev *udev = udev_device_get_udev(dev);
int i;
@@ -93,8 +90,7 @@ static int builtin_kmod(struct udev_device *dev, int argc, char *argv[], bool te
}
/* called at udev startup and reload */
-static int builtin_kmod_init(struct udev *udev)
-{
+static int builtin_kmod_init(struct udev *udev) {
if (ctx)
return 0;
@@ -109,15 +105,13 @@ static int builtin_kmod_init(struct udev *udev)
}
/* called on udev shutdown and reload request */
-static void builtin_kmod_exit(struct udev *udev)
-{
+static void builtin_kmod_exit(struct udev *udev) {
log_debug("unload module index");
ctx = kmod_unref(ctx);
}
/* called every couple of seconds during event activity; 'true' if config has changed */
-static bool builtin_kmod_validate(struct udev *udev)
-{
+static bool builtin_kmod_validate(struct udev *udev) {
log_debug("validate module index");
if (!ctx)
return false;