vbeinfo

changeset 2:193757920de9

removed commented qsort, we need stable sorting anyway
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 26 Jul 2017 21:08:55 +0300
parents d2d777a5da95
children 5b0ef094b8fd
files src/main.c
diffstat 1 files changed, 0 insertions(+), 11 deletions(-) [+]
line diff
     1.1 --- a/src/main.c	Wed Jul 26 21:05:01 2017 +0300
     1.2 +++ b/src/main.c	Wed Jul 26 21:08:55 2017 +0300
     1.3 @@ -12,7 +12,6 @@
     1.4  };
     1.5  
     1.6  void sort_modes(struct video_mode *arr, int sz, int field);
     1.7 -/*int modecmp(const void *pa, const void *pb);*/
     1.8  
     1.9  int main(int argc, char **argv)
    1.10  {
    1.11 @@ -64,7 +63,6 @@
    1.12  		vmodes[i].bpp = mode->bpp;
    1.13  	}
    1.14  
    1.15 -	/*qsort(vmodes, nmodes, sizeof *vmodes, modecmp);*/
    1.16  	sort_modes(vmodes, nmodes, 2);
    1.17  	sort_modes(vmodes, nmodes, 1);
    1.18  
    1.19 @@ -80,15 +78,6 @@
    1.20  	free(vmodes);
    1.21  	return 0;
    1.22  }
    1.23 -/*
    1.24 -int modecmp(const void *pa, const void *pb)
    1.25 -{
    1.26 -	const struct video_mode *va = pa;
    1.27 -	const struct video_mode *vb = pb;
    1.28 -
    1.29 -	return va->xres * va->yres < vb->xres * vb->yres;
    1.30 -}
    1.31 -*/
    1.32  
    1.33  void sort_modes(struct video_mode *arr, int sz, int field)
    1.34  {