diff options
author | jtl <jtl@FreeBSD.org> | 2016-01-14 21:08:23 +0000 |
---|---|---|
committer | jtl <jtl@FreeBSD.org> | 2016-01-14 21:08:23 +0000 |
commit | 71d3115e2041ff7f39643596f2951b34ac85cf68 (patch) | |
tree | 62d74bcbc8e65f5ead96a9df05c5d595ec439881 /contrib/llvm/lib/Bitcode/module.modulemap | |
parent | 61577b76c5f08333b11cbc707a987cf14354519d (diff) | |
download | FreeBSD-src-71d3115e2041ff7f39643596f2951b34ac85cf68.zip FreeBSD-src-71d3115e2041ff7f39643596f2951b34ac85cf68.tar.gz |
Improvements to the MDXFileChunk() template function:
- Remove unneeded fstat()/lseek() calls.
- Return NULL and set errno to EINVAL on negative length.
- Fix small style problems and expand variable names.
After this change, it is possible to use this code for some irregular
files. For example, 'md5 /dev/md0' should now succeed.
Differential Revision: https://reviews.freebsd.org/D4748
Suggested by: bde
Reviewed by: bde, allanjude, delphij
Diffstat (limited to 'contrib/llvm/lib/Bitcode/module.modulemap')
0 files changed, 0 insertions, 0 deletions