uint8_t err_string[96];
memset (err_string, 0, sizeof (char) * 96);
int err = MEMIF_ERR_SUCCESS; /* 0 */
- int err_disc;
if (i->version != MEMIF_VERSION)
{
DBG ("MEMIF_VER_ERR");
c->regions[ar->index].region_size = ar->size;
c->regions[ar->index].addr = NULL;
- if (lm->get_external_region_addr)
+ /* region 0 is never external */
+ if (lm->get_external_region_addr && (ar->index != 0))
c->regions[ar->index].is_external = 1;
return MEMIF_ERR_SUCCESS; /* 0 */
return MEMIF_ERR_MFMSG;
}
- struct ucred *cr = 0;
struct cmsghdr *cmsg;
cmsg = CMSG_FIRSTHDR (&mh);
{
if (cmsg->cmsg_type == SCM_CREDENTIALS)
{
- cr = (struct ucred *) CMSG_DATA (cmsg);
+ /* Do nothing */ ;
}
else if (cmsg->cmsg_type == SCM_RIGHTS)
{