summaryrefslogtreecommitdiffhomepage
path: root/dbrandom.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-06-03 09:41:09 +0800
committerGitHub <noreply@github.com>2017-06-03 09:41:09 +0800
commit4bba3268d5ad0a450f0f3d1b07cd600add47062b (patch)
tree079f7af36bf97dfa3bbe15650b0643351c045b34 /dbrandom.c
parent92c4f20089ec1f408e0147911631b750617b0ec9 (diff)
parent5f76e4c1ede157ca5a51c2189984e8ee57778d86 (diff)
Merge pull request #40 from fperrad/20161119_lint
more lintings
Diffstat (limited to 'dbrandom.c')
-rw-r--r--dbrandom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbrandom.c b/dbrandom.c
index eb747da..239b044 100644
--- a/dbrandom.c
+++ b/dbrandom.c
@@ -59,7 +59,7 @@ process_file(hash_state *hs, const char *filename,
unsigned int readcount;
int ret = DROPBEAR_FAILURE;
-#if DROPBEAR_PRNGD_SOCKET
+#ifdef DROPBEAR_PRNGD_SOCKET
if (prngd)
{
readfd = connect_unix(filename);
@@ -107,7 +107,7 @@ process_file(hash_state *hs, const char *filename,
wantread = MIN(sizeof(readbuf), len-readcount);
}
-#if DROPBEAR_PRNGD_SOCKET
+#ifdef DROPBEAR_PRNGD_SOCKET
if (prngd)
{
char egdcmd[2];
@@ -185,7 +185,7 @@ void seedrandom() {
/* existing state */
sha1_process(&hs, (void*)hashpool, sizeof(hashpool));
-#if DROPBEAR_PRNGD_SOCKET
+#ifdef DROPBEAR_PRNGD_SOCKET
if (process_file(&hs, DROPBEAR_PRNGD_SOCKET, INIT_SEED_SIZE, 1)
!= DROPBEAR_SUCCESS) {
dropbear_exit("Failure reading random device %s",