aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2004-02-10 18:46:10 +0000
committerGeoff Thorpe <geoff@openssl.org>2004-02-10 18:46:10 +0000
commit6c43032121b3403061119def69c5684ab955e7e2 (patch)
treee86fec1d01e8392689fbf2529940082e5e46b06e /apps
parent37ead9be0b990b94ec6dbf466cdc05f53c18d442 (diff)
downloadopenssl-6c43032121b3403061119def69c5684ab955e7e2.tar.gz
minor signed/unsigned warning fixes
Diffstat (limited to 'apps')
-rw-r--r--apps/asn1pars.c2
-rw-r--r--apps/req.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/asn1pars.c b/apps/asn1pars.c
index 88db0d1978..c28b5ec194 100644
--- a/apps/asn1pars.c
+++ b/apps/asn1pars.c
@@ -341,7 +341,7 @@ bad:
num -= offset;
- if ((length == 0) || (length > num)) length=(unsigned int)num;
+ if ((length == 0) || ((long)length > num)) length=(unsigned int)num;
if(derout) {
if(BIO_write(derout, str + offset, length) != (int)length) {
BIO_printf(bio_err, "Error writing output\n");
diff --git a/apps/req.c b/apps/req.c
index c4594c490c..5df8f89fcd 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -1322,7 +1322,7 @@ start: for (;;)
/* If OBJ not recognised ignore it */
if ((nid=OBJ_txt2nid(type)) == NID_undef) goto start;
if (BIO_snprintf(buf,sizeof buf,"%s_default",v->name)
- >= sizeof buf)
+ >= (int)sizeof(buf))
{
BIO_printf(bio_err,"Name '%s' too long\n",v->name);
return 0;
@@ -1387,7 +1387,7 @@ start2: for (;;)
goto start2;
if (BIO_snprintf(buf,sizeof buf,"%s_default",type)
- >= sizeof buf)
+ >= (int)sizeof(buf))
{
BIO_printf(bio_err,"Name '%s' too long\n",v->name);
return 0;