diff options
author | Kay Sievers <kay@vrfy.org> | 2014-07-29 15:47:41 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-07-29 15:49:25 +0200 |
commit | 9ec6e95b046de71c0198cb9d17acc5462dc76c74 (patch) | |
tree | fc604ecf68adf028611982dcdb34e2d3763a6631 /src/udev/udevadm.c | |
parent | 51f1ec3bbed72d5c0ee0fbcc346ed0fc82d18c96 (diff) |
udev: place opening { at the same line as the function declaration
Diffstat (limited to 'src/udev/udevadm.c')
-rw-r--r-- | src/udev/udevadm.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c index dbca369011..1c06c1aacd 100644 --- a/src/udev/udevadm.c +++ b/src/udev/udevadm.c @@ -27,13 +27,11 @@ void udev_main_log(struct udev *udev, int priority, const char *file, int line, const char *fn, - const char *format, va_list args) -{ + const char *format, va_list args) { log_metav(priority, file, line, fn, format, args); } -static int adm_version(struct udev *udev, int argc, char *argv[]) -{ +static int adm_version(struct udev *udev, int argc, char *argv[]) { printf("%s\n", VERSION); return 0; } @@ -63,8 +61,7 @@ static const struct udevadm_cmd *udevadm_cmds[] = { &udevadm_help, }; -static int adm_help(struct udev *udev, int argc, char *argv[]) -{ +static int adm_help(struct udev *udev, int argc, char *argv[]) { unsigned int i; fprintf(stderr, "Usage: udevadm [--help] [--version] [--debug] COMMAND [COMMAND OPTIONS]\n"); @@ -75,16 +72,14 @@ static int adm_help(struct udev *udev, int argc, char *argv[]) return 0; } -static int run_command(struct udev *udev, const struct udevadm_cmd *cmd, int argc, char *argv[]) -{ +static int run_command(struct udev *udev, const struct udevadm_cmd *cmd, int argc, char *argv[]) { if (cmd->debug) log_set_max_level(LOG_DEBUG); log_debug("calling: %s", cmd->name); return cmd->cmd(udev, argc, argv); } -int main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { struct udev *udev; static const struct option options[] = { { "debug", no_argument, NULL, 'd' }, |