diff options
author | keramida <keramida@FreeBSD.org> | 2013-02-20 18:31:55 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2013-02-20 18:31:55 +0000 |
commit | 1183d7a09c590e018fd2b8740e7c6525a014a246 (patch) | |
tree | e327f059f8a503be9d1f7527e8207118e986459b /lib/libc/stdlib/reallocf.c | |
parent | 6e71d34d7d0fa194ecffe60eaa87326f1849eaef (diff) | |
download | FreeBSD-src-1183d7a09c590e018fd2b8740e7c6525a014a246.zip FreeBSD-src-1183d7a09c590e018fd2b8740e7c6525a014a246.tar.gz |
Various improvements to the qsort(3) usage example:
- Remove unused #include.
- Do not cast away const.
- Use the canonical idiom to compare two numbers.
- Use proper type for sizes, i.e. size_t instead of int.
- Correct indentation.
- Simplify printf("\n") to puts("").
- Use return instead of exit() in main().
Submitted by: Christoph Mallon, christoph.mallon at gmx.de
Approved by: gjb (mentor)
Reviewed by: stefanf
MFC after: 1 week
Diffstat (limited to 'lib/libc/stdlib/reallocf.c')
0 files changed, 0 insertions, 0 deletions