mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05: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:
parent
88315a7112
commit
93ba527924
3
AUTHORS
3
AUTHORS
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user