aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2012-07-30 14:26:45 -0700
committerJeff Garzik <jgarzik@redhat.com>2012-07-31 15:30:25 -0400
commit593a93021566a41546b433bbb5d4eb66302c5eb3 (patch)
treeeea31aa0987890a61d9c7578339ce25a2d709243
parent2a01453686f065ac95916fe49a02407914e05dd4 (diff)
downloadrng-tools-593a93021566a41546b433bbb5d4eb66302c5eb3.tar.gz
rng-tools-593a93021566a41546b433bbb5d4eb66302c5eb3.tar.xz
rng-tools-593a93021566a41546b433bbb5d4eb66302c5eb3.zip
rngd_linux: Fix () used in prototype
() is an acceptable prototype in C++, but C requires (void). Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r--rngd_linux.c2
-rw-r--r--rngd_linux.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/rngd_linux.c b/rngd_linux.c
index 128d560..6400adf 100644
--- a/rngd_linux.c
+++ b/rngd_linux.c
@@ -89,7 +89,7 @@ void random_add_entropy(void *buf, size_t size)
}
}
-void random_sleep()
+void random_sleep(void)
{
struct pollfd pfd = {
fd: random_fd,
diff --git a/rngd_linux.h b/rngd_linux.h
index b543827..187e17c 100644
--- a/rngd_linux.h
+++ b/rngd_linux.h
@@ -38,7 +38,7 @@ extern void init_kernel_rng(const char* randomdev);
extern void random_add_entropy(void *buf, size_t size);
/* Sleep until the kernel is hungry for entropy */
-extern void random_sleep();
+extern void random_sleep(void);
#endif /* RNGD_LINUX__H */