CVSROOT: /cvs Module name: src Changes by: [email protected] 2015/12/06 16:22:51
Modified files:
usr.bin/gprof : arcs.c gprof.h printgprof.c
Log message:
Fix qsort() comparison functions:
- correct the function types to eliminate warnings
- avoid substractions that may overflow
- rework tests to be consistent: cmp(A,A)==0 && cmp(A,B)=-cmp(B,A)
worked out with Serguey Parkhomovsky (sergueyparkhomovsky (at) gmail.com)
