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/udevadm.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/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 e7e1b4a978..8daa6661e4 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", UDEV_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\n", 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' }, |