Avoid warnings.
diff --git a/apps/ca.c b/apps/ca.c index 06ac82d..1f24239 100644 --- a/apps/ca.c +++ b/apps/ca.c
@@ -866,7 +866,7 @@ if (!batch) { BIO_printf(bio_err,"\n%d out of %d certificate requests certified, commit? [y/n]",total_done,total); - BIO_flush(bio_err); + (void)BIO_flush(bio_err); buf[0][0]='\0'; fgets(buf[0],10,stdin); if ((buf[0][0] != 'y') && (buf[0][0] != 'Y')) @@ -1067,7 +1067,7 @@ strlen(pp[DB_rev_date])); /* strcpy(r->revocationDate,pp[DB_rev_date]);*/ - BIO_reset(hex); + (void)BIO_reset(hex); if (!BIO_puts(hex,pp[DB_serial])) goto err; if (!a2i_ASN1_INTEGER(hex,r->serialNumber, @@ -1791,7 +1791,7 @@ if (!batch) { BIO_printf(bio_err,"Sign the certificate? [y/n]:"); - BIO_flush(bio_err); + (void)BIO_flush(bio_err); buf[0]='\0'; fgets(buf,sizeof(buf)-1,stdin); if (!((buf[0] == 'y') || (buf[0] == 'Y')))
diff --git a/apps/dgst.c b/apps/dgst.c index 22e7241..5f0506e 100644 --- a/apps/dgst.c +++ b/apps/dgst.c
@@ -182,7 +182,7 @@ } printf("%s(%s)= ",name,argv[i]); do_fp(buf,inp,separator); - BIO_reset(bmd); + (void)BIO_reset(bmd); } } end:
diff --git a/apps/dsaparam.c b/apps/dsaparam.c index 118d974..be653a3 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c
@@ -345,7 +345,7 @@ if (p == 2) c='*'; if (p == 3) c='\n'; BIO_write((BIO *)arg,&c,1); - BIO_flush((BIO *)arg); + (void)BIO_flush((BIO *)arg); #ifdef LINT p=n; #endif
diff --git a/apps/gendh.c b/apps/gendh.c index e5cb646..3d50948 100644 --- a/apps/gendh.c +++ b/apps/gendh.c
@@ -193,7 +193,7 @@ if (p == 2) c='*'; if (p == 3) c='\n'; BIO_write((BIO *)arg,&c,1); - BIO_flush((BIO *)arg); + (void)BIO_flush((BIO *)arg); #ifdef LINT p=n; #endif
diff --git a/apps/genrsa.c b/apps/genrsa.c index 9dfeb75..cc4f786 100644 --- a/apps/genrsa.c +++ b/apps/genrsa.c
@@ -236,7 +236,7 @@ if (p == 2) c='*'; if (p == 3) c='\n'; BIO_write((BIO *)arg,&c,1); - BIO_flush((BIO *)arg); + (void)BIO_flush((BIO *)arg); #ifdef LINT p=n; #endif
diff --git a/apps/openssl.c b/apps/openssl.c index d7d6601..9a337fb 100644 --- a/apps/openssl.c +++ b/apps/openssl.c
@@ -219,7 +219,7 @@ } if (ret != 0) BIO_printf(bio_err,"error in %s\n",argv[0]); - BIO_flush(bio_err); + (void)BIO_flush(bio_err); } BIO_printf(bio_err,"bad exit\n"); ret=1;
diff --git a/apps/pkcs12.c b/apps/pkcs12.c index 1550c07..45d9797 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c
@@ -293,7 +293,7 @@ unsigned int keyidlen; /* Get private key so we can match it to a certificate */ key = PEM_read_bio_PrivateKey(inkey ? inkey : in, NULL, NULL); - if (!inkey) BIO_reset(in); + if (!inkey) (void)BIO_reset(in); if (!key) { BIO_printf (bio_err, "Error loading private key\n"); ERR_print_errors(bio_err);
diff --git a/apps/req.c b/apps/req.c index cb30888..fd23f57 100644 --- a/apps/req.c +++ b/apps/req.c
@@ -245,7 +245,7 @@ if ((dsa_params=PEM_read_bio_DSAparams(in,NULL,NULL)) == NULL) { ERR_clear_error(); - BIO_reset(in); + (void)BIO_reset(in); if ((xtmp=PEM_read_bio_X509(in,NULL,NULL)) == NULL) { BIO_printf(bio_err,"unable to load DSA parameters from file\n"); @@ -979,7 +979,7 @@ MS_STATIC char buf[1024]; BIO_printf(bio_err,"%s [%s]:",text,def); - BIO_flush(bio_err); + (void)BIO_flush(bio_err); if (value != NULL) { strcpy(buf,value); @@ -1040,7 +1040,7 @@ start: BIO_printf(bio_err,"%s [%s]:",text,def); - BIO_flush(bio_err); + (void)BIO_flush(bio_err); if (value != NULL) { strcpy(buf,value); @@ -1123,7 +1123,7 @@ if (p == 2) c='*'; if (p == 3) c='\n'; BIO_write((BIO *)arg,&c,1); - BIO_flush((BIO *)arg); + (void)BIO_flush((BIO *)arg); #ifdef LINT p=n; #endif
diff --git a/apps/s_server.c b/apps/s_server.c index aeca2ea..c82c0f3 100644 --- a/apps/s_server.c +++ b/apps/s_server.c
@@ -631,7 +631,7 @@ BIO_printf(bio_s_out,"Using default temp DH parameters\n"); dh=get_dh512(); } - BIO_flush(bio_s_out); + (void)BIO_flush(bio_s_out); SSL_CTX_set_tmp_dh(ctx,dh); DH_free(dh); @@ -1403,13 +1403,13 @@ if (!s_quiet) { BIO_printf(bio_err,"Generating temp (%d bit) RSA key...",keylength); - BIO_flush(bio_err); + (void)BIO_flush(bio_err); } rsa_tmp=RSA_generate_key(keylength,RSA_F4,NULL,NULL); if (!s_quiet) { BIO_printf(bio_err,"\n"); - BIO_flush(bio_err); + (void)BIO_flush(bio_err); } } return(rsa_tmp);
diff --git a/apps/s_socket.c b/apps/s_socket.c index 6302f9f..45c2939 100644 --- a/apps/s_socket.c +++ b/apps/s_socket.c
@@ -494,7 +494,7 @@ unsigned int in[4]; int i; - if (sscanf(str,"%d.%d.%d.%d",&(in[0]),&(in[1]),&(in[2]),&(in[3])) == 4) + if (sscanf(str,"%u.%u.%u.%u",&(in[0]),&(in[1]),&(in[2]),&(in[3])) == 4) { for (i=0; i<4; i++) if (in[i] > 255)
diff --git a/apps/speed.c b/apps/speed.c index 5b07a21..d865bfb 100644 --- a/apps/speed.c +++ b/apps/speed.c
@@ -1130,7 +1130,7 @@ printf("%18ssign verify sign/s verify/s\n"," "); j=0; } - fprintf(stdout,"rsa %4d bits %8.4fs %8.4fs %8.1f %8.1f", + fprintf(stdout,"rsa %4u bits %8.4fs %8.4fs %8.1f %8.1f", rsa_bits[k],rsa_results[k][0],rsa_results[k][1], 1.0/rsa_results[k][0],1.0/rsa_results[k][1]); fprintf(stdout,"\n"); @@ -1145,7 +1145,7 @@ printf("%18ssign verify sign/s verify/s\n"," "); j=0; } - fprintf(stdout,"dsa %4d bits %8.4fs %8.4fs %8.1f %8.1f", + fprintf(stdout,"dsa %4u bits %8.4fs %8.4fs %8.1f %8.1f", dsa_bits[k],dsa_results[k][0],dsa_results[k][1], 1.0/dsa_results[k][0],1.0/dsa_results[k][1]); fprintf(stdout,"\n"); @@ -1172,11 +1172,11 @@ { #ifdef SIGALRM BIO_printf(bio_err,"Doing %s for %ds on %d size blocks: ",s,SECONDS,length); - BIO_flush(bio_err); + (void)BIO_flush(bio_err); alarm(SECONDS); #else BIO_printf(bio_err,"Doing %s %ld times on %d size blocks: ",s,num,length); - BIO_flush(bio_err); + (void)BIO_flush(bio_err); #endif #ifdef LINT num=num; @@ -1188,11 +1188,11 @@ { #ifdef SIGALRM BIO_printf(bio_err,"Doing %d bit %s %s's for %ds: ",bits,str,str2,tm); - BIO_flush(bio_err); + (void)BIO_flush(bio_err); alarm(RSA_SECONDS); #else BIO_printf(bio_err,"Doing %ld %d bit %s %s's: ",num,bits,str,str2); - BIO_flush(bio_err); + (void)BIO_flush(bio_err); #endif #ifdef LINT num=num;