mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Corrected parameters to qsort()
SVN revision: 125
This commit is contained in:
parent
1eb040eb99
commit
c014ec15ce
10
elogd.c
10
elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 2.19 2002/06/14 07:21:38 midas
|
||||||
|
Corrected parameters to qsort()
|
||||||
|
|
||||||
Revision 2.18 2002/06/14 07:15:22 midas
|
Revision 2.18 2002/06/14 07:15:22 midas
|
||||||
Fixed <keep> on resubmits
|
Fixed <keep> on resubmits
|
||||||
|
|
||||||
@ -1359,11 +1362,12 @@ INT ss_file_find(char *path, char *pattern, char **plist)
|
|||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
|
|
||||||
int eli_compare(const EL_INDEX *e1, const EL_INDEX *e2)
|
int eli_compare(const void *e1, const void *e2)
|
||||||
{
|
{
|
||||||
if (e1->file_time < e2->file_time)
|
|
||||||
|
if (((EL_INDEX *)e1)->file_time < ((EL_INDEX *)e2)->file_time)
|
||||||
return -1;
|
return -1;
|
||||||
if (e1->file_time > e2->file_time)
|
if (((EL_INDEX *)e1)->file_time > ((EL_INDEX *)e2)->file_time)
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user