Fix some pedantic warnings.
authorPauli <paul.dale@oracle.com>
Mon, 17 Jul 2017 01:05:13 +0000 (11:05 +1000)
committerPauli <paul.dale@oracle.com>
Mon, 17 Jul 2017 01:24:08 +0000 (11:24 +1000)
Introduced by #3862

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3944)

apps/app_rand.c
apps/dgst.c
apps/passwd.c
apps/speed.c
apps/srp.c

index 960d2fe6c63739298d348fef92e025ea7fd4e83b..3a05352f9f2673917900ba3c6beb59ca38cbf0ce 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "apps.h"
 #include <openssl/bio.h>
+#include <openssl/err.h>
 #include <openssl/rand.h>
 #include <openssl/conf.h>
 
@@ -33,7 +34,7 @@ void app_RAND_load_conf(CONF *c, const char *section)
 
 static int loadfiles(char *name)
 {
-    char *p, *n;
+    char *p;
     int last, ret = 1;
 
     for ( ; ; ) {
@@ -48,7 +49,6 @@ static int loadfiles(char *name)
             ERR_print_errors(bio_err);
             ret = 0;
         }
-        n = name;
         if (last)
             break;
         name = p + 1;
index df50947603394d1c7822f2295778b1a1bd720c74..46aa59ad24f5bc424c75928b18b3c1d692e69c6f 100644 (file)
@@ -34,7 +34,7 @@ typedef enum OPTION_choice {
     OPT_HEX, OPT_BINARY, OPT_DEBUG, OPT_FIPS_FINGERPRINT,
     OPT_HMAC, OPT_MAC, OPT_SIGOPT, OPT_MACOPT,
     OPT_DIGEST,
-    OPT_R_ENUM,
+    OPT_R_ENUM
 } OPTION_CHOICE;
 
 const OPTIONS dgst_options[] = {
index eb5a622af73b6490ba0bd2359bdafd305fdf1617..ea27c18fb78c0dea4662f0dcf66bf5844e282c78 100644 (file)
@@ -66,7 +66,7 @@ typedef enum OPTION_choice {
     OPT_IN,
     OPT_NOVERIFY, OPT_QUIET, OPT_TABLE, OPT_REVERSE, OPT_APR1,
     OPT_1, OPT_5, OPT_6, OPT_CRYPT, OPT_AIXMD5, OPT_SALT, OPT_STDIN,
-    OPT_R_ENUM,
+    OPT_R_ENUM
 } OPTION_CHOICE;
 
 const OPTIONS passwd_options[] = {
index a08606006dbce78c85a49da8b458637477e3f886..becdf6efcda96c76e5a9541244156bd73a6895c3 100644 (file)
@@ -342,7 +342,7 @@ static int found(const char *name, const OPT_PAIR *pairs, int *result)
 typedef enum OPTION_choice {
     OPT_ERR = -1, OPT_EOF = 0, OPT_HELP,
     OPT_ELAPSED, OPT_EVP, OPT_DECRYPT, OPT_ENGINE, OPT_MULTI,
-    OPT_MR, OPT_MB, OPT_MISALIGN, OPT_ASYNCJOBS, OPT_R_ENUM,
+    OPT_MR, OPT_MB, OPT_MISALIGN, OPT_ASYNCJOBS, OPT_R_ENUM
 } OPTION_CHOICE;
 
 const OPTIONS speed_options[] = {
index f67c7fff7d23a048b6c4e4b37cbee68fdd0f81a0..c5002188a55316d6ac1c63fbe649f80ee8eab0b5 100644 (file)
@@ -188,7 +188,7 @@ typedef enum OPTION_choice {
     OPT_ERR = -1, OPT_EOF = 0, OPT_HELP,
     OPT_VERBOSE, OPT_CONFIG, OPT_NAME, OPT_SRPVFILE, OPT_ADD,
     OPT_DELETE, OPT_MODIFY, OPT_LIST, OPT_GN, OPT_USERINFO,
-    OPT_PASSIN, OPT_PASSOUT, OPT_ENGINE, OPT_R_ENUM,
+    OPT_PASSIN, OPT_PASSOUT, OPT_ENGINE, OPT_R_ENUM
 } OPTION_CHOICE;
 
 const OPTIONS srp_options[] = {