diff options
| author | dyoung <dyoung@NetBSD.org> | 2006-07-28 17:04:27 +0000 |
|---|---|---|
| committer | dyoung <dyoung@NetBSD.org> | 2006-07-28 17:04:27 +0000 |
| commit | bce72f7b6a45ba2ebfe2b93c2e1d56b753df3987 (patch) | |
| tree | 57044cbe3218271ba20aaccf5e21be0bcf3685f6 /usr.bin/make | |
| parent | b00752709e80ee78d7e10ede3fc2c944c34ed839 (diff) | |
Fix mtod() usage. If we will write to the mbuf data, check whether
the data is read-only/shared and call m_pullup(). Otherwise,
extract a const pointer to the mbuf data.
XXX I should extract a new macro, M_WRITABLE(m, len), that is true
if m has len consecutive writable bytes at its front.
Diffstat (limited to 'usr.bin/make')
0 files changed, 0 insertions, 0 deletions
