HomeFreeBSD

Use IDX_TO_OFF(), not ptoa(), when converting the difference between two

Description

Use IDX_TO_OFF(), not ptoa(), when converting the difference between two
vm_pindex_t's into a vm_ooffset_t.

The length given to shm_dotruncate() must never be negative. Assert this.

Tidy up a comment.

Reviewed by: kib
MFC after: 1 week

Details

Provenance
alcAuthored on
Reviewer
kib
Parents
rS315620: syslogd: fix dprintf in socksetup(..)
Branches
Unknown
Tags
Unknown