From 3c6892223be88a9d1aa4801375cee14e3a47acef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Edgar=20Fu=C3=9F?= Date: Thu, 9 Jul 2020 12:52:56 +0200 Subject: [PATCH] clang-format Partly apply clang-format. Do not re-order sys/types.h. --- src/entropy.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/entropy.c b/src/entropy.c index 2f0985ab3..8e0a5a955 100644 --- a/src/entropy.c +++ b/src/entropy.c @@ -29,8 +29,8 @@ #include "plugin.h" #include "utils/common/common.h" -static void entropy_submit (value_t); -static int entropy_read (void); +static void entropy_submit(value_t); +static int entropy_read(void); #if !KERNEL_LINUX && !KERNEL_NETBSD #error "No applicable input method." @@ -65,13 +65,11 @@ static int entropy_read(void) { #include #include #if HAVE_SYS_RNDIO_H -# include +#include #endif #include -static int -entropy_read (void) -{ +static int entropy_read(void) { value_t v; rndpoolstat_t rs; static int fd; @@ -86,7 +84,7 @@ entropy_read (void) } if (ioctl(fd, RNDGETPOOLSTAT, &rs) < 0) { - (void) close(fd); + (void)close(fd); fd = 0; /* signal a reopening on next attempt */ return -1; } @@ -96,7 +94,7 @@ entropy_read (void) return (-1); } - entropy_submit (v); + entropy_submit(v); return 0; } -- 2.39.5