[PATCH] Fixed compiler errors and warnings in src/util/random.c where CONFIG_SSL undefined
Peter Collingbourne <[email protected]> Mon, 3 Nov 2008 21:56:10 +0000
| Newsgroups | gmane.comp.web.links |
|---|---|
| Message-ID | <[email protected]> |
The patch also adds the name of the author of the patch to the contributor list. --- > ELinks is currently licensed under GPLv2 only. I hope we can > eventually change the licence to also allow later versions of > GPL and permit linking with OpenSSL. Do you allow such > relicensing for your patch? I agree to this. > Do you give permission to add your name and email address to the > commit information, to the AUTHORS file, and similar places > (e.g. a list of contributors in release notes)? Yes. AUTHORS | 3 +++ src/util/random.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/AUTHORS b/AUTHORS index 0b4b5f1..866f0d7 100644 --- a/AUTHORS +++ b/AUTHORS @@ -456,6 +456,9 @@ Pavol Babincak <[email protected]> Peder Stray <[email protected]> Fix handling of key presses turning up as key prefixes +Peter Collingbourne <[email protected]> + Fixed compiler errors and warnings in src/util/random.c where CONFIG_SSL undefined + Peter Gervai <[email protected]> Manpage updates Mailcap to links.cfg convertor diff --git a/src/util/random.c b/src/util/random.c index 42c6611..cb4f5e8 100644 --- a/src/util/random.c +++ b/src/util/random.c @@ -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); } -- 1.5.6.5 -- Peter _______________________________________________ elinks-dev mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJD3N4XDqn6DSH7HERAsZxAJ9mMO1ePtvm7Eso2n3YPWkfXdJN4gCeP7jt yc6od6pI5FjjOURlvZ8pJEM= =f1KC -----END PGP SIGNATURE-----