Searched hist:131101 (Results 1 - 1 of 1) sorted by relevance

/freebsd-10.1-release/sbin/gbde/
H A Dgbde.cdiff 131101 Fri Jun 25 11:04:49 MDT 2004 sobomax o Fix semantics of comparison function for qsort(3). According to qsort(3)
manpage:

The comparison function must return an integer less than, equal to, or
greater than zero if the first argument is considered to be respectively
less than, equal to, or greater than the second.

Therefore, simply returning "arg1 > arg2" is incorrect. Actually it works
but for the number of items to be sorted less than 7 due to special case
handling in qsort(3);

o add missing '\n' to one of usage() calls.

Approved by: phk

Completed in 96 milliseconds