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
Родитель 32ada12245
Коммит 0c86eb4eee
2 изменённых файлов: 2 добавлений и 2 удалений

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

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

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

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