Partly apply clang-format. Do not re-order sys/types.h.
#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."
#include <sys/param.h>
#include <sys/rnd.h>
#if HAVE_SYS_RNDIO_H
-# include <sys/rndio.h>
+#include <sys/rndio.h>
#endif
#include <paths.h>
-static int
-entropy_read (void)
-{
+static int entropy_read(void) {
value_t v;
rndpoolstat_t rs;
static int fd;
}
if (ioctl(fd, RNDGETPOOLSTAT, &rs) < 0) {
- (void) close(fd);
+ (void)close(fd);
fd = 0; /* signal a reopening on next attempt */
return -1;
}
return (-1);
}
- entropy_submit (v);
+ entropy_submit(v);
return 0;
}