diff options
author | Simon Rettberg | 2014-03-19 14:35:19 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-03-19 14:35:19 +0100 |
commit | e3806b35a212fc846f3a3e4b61090d9e6196cc1d (patch) | |
tree | 3e65b810aa62557579a348e44b24e205bd057ba3 /scan_ldapsearchrequest.c | |
parent | Work (diff) | |
download | ldadp-e3806b35a212fc846f3a3e4b61090d9e6196cc1d.tar.gz ldadp-e3806b35a212fc846f3a3e4b61090d9e6196cc1d.tar.xz ldadp-e3806b35a212fc846f3a3e4b61090d9e6196cc1d.zip |
Fixed compilation warnings about pointer mismatch on 32bit
Diffstat (limited to 'scan_ldapsearchrequest.c')
-rw-r--r-- | scan_ldapsearchrequest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scan_ldapsearchrequest.c b/scan_ldapsearchrequest.c index 8b685bf..94163db 100644 --- a/scan_ldapsearchrequest.c +++ b/scan_ldapsearchrequest.c @@ -3,7 +3,7 @@ size_t scan_ldapsearchrequest(const char* src,const char* max, struct SearchRequest* s) { - size_t res,tmp; + size_t res,tmp,elen; unsigned long etmp; signed long ltmp; s->attributes=0; @@ -24,10 +24,10 @@ size_t scan_ldapsearchrequest(const char* src,const char* max, if (!(tmp=scan_ldapsearchfilter(src+res,max,&s->filter))) goto error; res+=tmp; /* now for the attributelist */ - if (!(tmp=scan_asn1SEQUENCE(src+res,max,&etmp))) goto error; + if (!(tmp=scan_asn1SEQUENCE(src+res,max,&elen))) goto error; res+=tmp; { - const char* nmax=src+res+etmp; + const char* nmax=src+res+elen; //#define nmax max struct AttributeDescriptionList** a=&s->attributes; if (nmax>max) goto error; |