diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2005-04-26 17:43:53 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2005-04-26 17:43:53 +0000 |
commit | 4e321ffafff3a1f31bbbfdcf1b17c0ecbde2121f (patch) | |
tree | 7d73e26943039afac7437af0bd9d49185468d80c /ssl/d1_pkt.c | |
parent | 6ededa42db8b4c222fa95198d43c1ad57c19b411 (diff) |
Fixes for signed/unsigned warnings and shadows.
Diffstat (limited to 'ssl/d1_pkt.c')
-rw-r--r-- | ssl/d1_pkt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 4b3aabcfa7..c84e6865a0 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -775,7 +775,7 @@ start: * fill that so that we can process the data at a fixed place. */ { - unsigned int i, dest_maxlen = 0; + unsigned int k, dest_maxlen = 0; unsigned char *dest = NULL; unsigned int *dest_len = NULL; @@ -807,9 +807,9 @@ start: } /* now move 'n' bytes: */ - for ( i = 0; i < dest_maxlen; i++) + for ( k = 0; k < dest_maxlen; k++) { - dest[i] = rr->data[rr->off++]; + dest[k] = rr->data[rr->off++]; rr->length--; } *dest_len = dest_maxlen; @@ -1504,8 +1504,8 @@ int dtls1_dispatch_alert(SSL *s) { int i,j; void (*cb)(const SSL *ssl,int type,int val)=NULL; - char buf[2 + 2 + 3]; /* alert level + alert desc + message seq +frag_off */ - char *ptr = &buf[0]; + unsigned char buf[2 + 2 + 3]; /* alert level + alert desc + message seq +frag_off */ + unsigned char *ptr = &buf[0]; s->s3->alert_dispatch=0; |