summaryrefslogtreecommitdiff
path: root/apps/ca.c
diff options
context:
space:
mode:
authorgeoff <geoff>2003-10-29 20:24:07 +0000
committergeoff <geoff>2003-10-29 20:24:07 +0000
commitb236e653c490d31b2bdda254cf9967c770a7848e (patch)
treee3b4cef8d735cd3be212a7ecbc53d9d5f1af33c9 /apps/ca.c
parent3b3e93ebfd539b72c6c7059dca63ef6c90a1990e (diff)
downloadopenssl-b236e653c490d31b2bdda254cf9967c770a7848e.tar.gz
A general spring-cleaning (in autumn) to fix up signed/unsigned warnings.
I have tried to convert 'len' type variable declarations to unsigned as a means to address these warnings when appropriate, but when in doubt I have used casts in the comparisons instead. The better solution (that would get us all lynched by API users) would be to go through and convert all the function prototypes and structure definitions to use unsigned variables except when signed is necessary. The proliferation of (signed) "int" for strictly non-negative uses is unfortunate.
Diffstat (limited to 'apps/ca.c')
-rw-r--r--apps/ca.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 780868a9f..15211b844 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -3005,7 +3005,8 @@ int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, ASN1_G
char *tmp = NULL;
char *rtime_str, *reason_str = NULL, *arg_str = NULL, *p;
int reason_code = -1;
- int i, ret = 0;
+ int ret = 0;
+ unsigned int i;
ASN1_OBJECT *hold = NULL;
ASN1_GENERALIZEDTIME *comp_time = NULL;
tmp = BUF_strdup(str);