Bugzilla Bug 327529: unnamed arguments (third and after) for CERT_CreateRDN

must have the correct CERTAVA * type because compilers can't do automatic
type conversions. r=nelsonb,jpierre.
Modified files: alg1485.c secname.c
This commit is contained in:
wtchang%redhat.com 2006-02-20 23:06:55 +00:00
Родитель cfda9ddaff
Коммит c449f54be3
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -394,7 +394,7 @@ ParseRFC1485Name(char *buf, int len)
while (bp < e) {
ava = CERT_ParseRFC1485AVA(name->arena, &bp, e, PR_FALSE);
if (ava == 0) goto loser;
rdn = CERT_CreateRDN(name->arena, ava, 0);
rdn = CERT_CreateRDN(name->arena, ava, (CERTAVA *)0);
if (rdn == 0) goto loser;
rv = CERT_AddRDN(name, rdn);
if (rv) goto loser;

Просмотреть файл

@ -432,7 +432,7 @@ CERT_CopyName(PRArenaPool *arena, CERTName *to, CERTName *from)
return rv;
}
while ((frdn = *rdns++) != NULL) {
trdn = CERT_CreateRDN(arena, 0);
trdn = CERT_CreateRDN(arena, NULL);
if (!trdn) {
rv = SECFailure;
break;