1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

Fixed compiler errors and warnings in src/util/random.c where CONFIG_SSL undefined

The patch also adds the name of the author of the patch to the
contributor list.
This commit is contained in:
Peter Collingbourne 2008-11-03 21:56:10 +00:00 committed by Kalle Olavi Niemitalo
parent 88315a7112
commit 93ba527924
2 changed files with 5 additions and 1 deletions

View File

@ -456,6 +456,9 @@ Pavol Babincak <scroolik@gmail.com>
Peder Stray <peder@ifi.uio.no>
Fix handling of key presses turning up as key prefixes
Peter Collingbourne <peter@peter.uk.to>
Fixed compiler errors and warnings in src/util/random.c where CONFIG_SSL undefined
Peter Gervai <grin@tolna.net>
Manpage updates
Mailcap to links.cfg convertor

View File

@ -6,6 +6,7 @@
#endif
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "elinks.h"
@ -95,7 +96,7 @@ random_nonce(unsigned char buf[], size_t size)
if (!f) f = fopen("/dev/prandom", "rb"); /* OpenBSD */
if (f) {
i = fread(data, 1, length, f);
i = fread(buf, 1, size, f);
fclose(f);
}