for (cinfo = &(cmsg->contentInfo); cinfo != NULL; cinfo = NSS_CMSContentInfo_GetChildContentInfo(cinfo)) {
for (cinfo = &(cmsg->contentInfo); cinfo != NULL; ) {
NSS_CMSMessage_ContentLevelCount(NSSCMSMessage *cmsg){    int count = 0;    NSSCMSContentInfo *cinfo;    /* walk down the chain of contentinfos */    for (cinfo = &(cmsg->contentInfo); cinfo != NULL; cinfo = NSS_CMSContentInfo_GetChildContentInfo(cinfo)) {	count++;    }    return count;}