be more strict with signed/unsigned

This commit is contained in:
leitner
2002-09-07 11:40:51 +00:00
parent e6eb6100ab
commit e57b1323f8
5 changed files with 10 additions and 6 deletions

8
ldap.h
View File

@@ -99,11 +99,13 @@ void freepal(struct PartialAttributeList* a);
int scan_ldapstring(const char* src,const char* max,struct string* s);
int scan_ldapmessage(const char* src,const char* max,
long* messageid,long* op,long* len);
unsigned long* messageid,unsigned long* op,
unsigned long* len);
int scan_ldapbindrequest(const char* src,const char* max,
long* version,struct string* name,long* method);
unsigned long* version,struct string* name,
unsigned long* method);
int scan_ldapbindresponse(const char* src,const char* max,
long* result,struct string* matcheddn,
unsigned long* result,struct string* matcheddn,
struct string* errormessage,struct string* referral);
int scan_ldapava(const char* src,const char* max,struct AttributeValueAssertion* a);
int scan_ldapsearchfilter(const char* src,const char* max,struct Filter** f);

View File

@@ -1,3 +1,4 @@
#include <alloca.h>
#include <inttypes.h>
#include <unistd.h>
#include <sys/fcntl.h>

View File

@@ -2,7 +2,8 @@
#include "ldap.h"
int scan_ldapbindrequest(const char* src,const char* max,
long* version,struct string* name,long* method) {
unsigned long* version,struct string* name,
unsigned long* method) {
int res,tmp;
if (!(res=scan_asn1INTEGER(src,max,version))) return 0;
if (!(tmp=scan_ldapstring(src+res,max,name))) return 0;

View File

@@ -2,7 +2,7 @@
#include "ldap.h"
int scan_ldapbindresponse(const char* src,const char* max,
long* result,struct string* matcheddn,
unsigned long* result,struct string* matcheddn,
struct string* errormessage,struct string* referral) {
int res,tmp;
if (!(res=scan_asn1ENUMERATED(src,max,result))) return 0;

View File

@@ -2,7 +2,7 @@
#include "ldap.h"
int scan_ldapmessage(const char* src,const char* max,
long* messageid,long* op,long* len) {
unsigned long* messageid,unsigned long* op,unsigned long* len) {
int res,tmp;
if (!(res=scan_asn1SEQUENCE(src,max,len))) goto error;
if (!(tmp=scan_asn1INTEGER(src+res,max,messageid))) goto error;