diff options
author | delphij <delphij@FreeBSD.org> | 2012-04-13 22:34:01 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-04-13 22:34:01 +0000 |
commit | 716dc0a601e63e27f4d5fa9699d4a218d60e2557 (patch) | |
tree | f5a223e26839d40e24676334780547881aedb4b8 /contrib/diff/lib/prepargs.h | |
parent | c185a54ef0533cec95acb9b6a475abf7bbabef63 (diff) | |
download | FreeBSD-src-716dc0a601e63e27f4d5fa9699d4a218d60e2557.zip FreeBSD-src-716dc0a601e63e27f4d5fa9699d4a218d60e2557.tar.gz |
The scandir(3) function expects fourth parameter, compar, be in type of:
int (*compar)(const struct dirent **, const struct dirent **)
The current code defines sortq() to accept two void *, then cast them
to const struct dirent **. Because the code does not really need this
cast, we can eliminate the casts by changing the function prototype
to match scandir(3) expectation.
MFC after: 1 month
Diffstat (limited to 'contrib/diff/lib/prepargs.h')
0 files changed, 0 insertions, 0 deletions