# HG changeset patch # User John Tsiombikas # Date 1501092535 -10800 # Node ID 193757920de96fc8eb4fb096932bda8550d45fd9 # Parent d2d777a5da95a875be9819edb5d5998a80bd7954 removed commented qsort, we need stable sorting anyway diff -r d2d777a5da95 -r 193757920de9 src/main.c --- a/src/main.c Wed Jul 26 21:05:01 2017 +0300 +++ b/src/main.c Wed Jul 26 21:08:55 2017 +0300 @@ -12,7 +12,6 @@ }; void sort_modes(struct video_mode *arr, int sz, int field); -/*int modecmp(const void *pa, const void *pb);*/ int main(int argc, char **argv) { @@ -64,7 +63,6 @@ vmodes[i].bpp = mode->bpp; } - /*qsort(vmodes, nmodes, sizeof *vmodes, modecmp);*/ sort_modes(vmodes, nmodes, 2); sort_modes(vmodes, nmodes, 1); @@ -80,15 +78,6 @@ free(vmodes); return 0; } -/* -int modecmp(const void *pa, const void *pb) -{ - const struct video_mode *va = pa; - const struct video_mode *vb = pb; - - return va->xres * va->yres < vb->xres * vb->yres; -} -*/ void sort_modes(struct video_mode *arr, int sz, int field) {