From: Edgar Fuß Date: Thu, 9 Jul 2020 10:52:56 +0000 (+0200) Subject: clang-format X-Git-Tag: collectd-5.12.0~17^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c6892223be88a9d1aa4801375cee14e3a47acef;p=thirdparty%2Fcollectd.git clang-format Partly apply clang-format. Do not re-order sys/types.h. --- 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; }