diff options
author | Paul Yang <yang.yang@baishancloud.com> | 2018-10-08 10:36:49 +0200 |
---|---|---|
committer | Paul Yang <yang.yang@baishancloud.com> | 2018-10-11 05:17:36 +0200 |
commit | 19ac1bf2de07214ee7ee6d2e118fa3aa8e5850f3 (patch) | |
tree | d184b2567e3726962dc863970688c819452e4767 /doc | |
parent | crypto/rand: fix some style nit's (diff) | |
download | openssl-19ac1bf2de07214ee7ee6d2e118fa3aa8e5850f3.tar.xz openssl-19ac1bf2de07214ee7ee6d2e118fa3aa8e5850f3.zip |
Fix compiling warnings in example code
The example code in EVP_DigestInit.pod generates warnings if users try
to compile it.
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7362)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/EVP_DigestInit.pod | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/man3/EVP_DigestInit.pod b/doc/man3/EVP_DigestInit.pod index 0fedd17ce6..5ecbcc5e89 100644 --- a/doc/man3/EVP_DigestInit.pod +++ b/doc/man3/EVP_DigestInit.pod @@ -310,16 +310,17 @@ This example digests the data "Test Message\n" and "Hello World\n", using the digest name passed on the command line. #include <stdio.h> + #include <string.h> #include <openssl/evp.h> - main(int argc, char *argv[]) + int main(int argc, char *argv[]) { EVP_MD_CTX *mdctx; const EVP_MD *md; char mess1[] = "Test Message\n"; char mess2[] = "Hello World\n"; unsigned char md_value[EVP_MAX_MD_SIZE]; - int md_len, i; + unsigned int md_len, i; if (argv[1] == NULL) { printf("Usage: mdtest digestname\n"); |