summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjirka-h <hladky.jiri@gmail.com>2019-08-19 21:50:10 +0200
committerGitHub <noreply@github.com>2019-08-19 21:50:10 +0200
commit6871ef398c9853c75f3bfc14fbad72c64c360519 (patch)
tree7d306034a50b429d05e2a550df9d42acce462994 /src
parentMerge pull request #17 from nbraud/NEWS (diff)
parentFix type mismatch in get_poolsize (diff)
downloadhaveged-6871ef398c9853c75f3bfc14fbad72c64c360519.tar.xz
haveged-6871ef398c9853c75f3bfc14fbad72c64c360519.zip
Merge pull request #16 from andreas-schwab/master
Fix type mismatch in get_poolsize
Diffstat (limited to 'src')
-rw-r--r--src/haveged.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/haveged.c b/src/haveged.c
index 9788bda..543d833 100644
--- a/src/haveged.c
+++ b/src/haveged.c
@@ -496,7 +496,8 @@ static int get_poolsize( /* RETURN: number of bits */
void) /* IN: nothing */
{
FILE *poolsize_fh,*osrel_fh;
- unsigned int max_bits,major,minor;
+ unsigned int major,minor;
+ int max_bits;
poolsize_fh = fopen(params->poolsize, "rb");
if (poolsize_fh) {