Changeset 8322
- Timestamp:
- 02/08/21 11:48:27 (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/reporting/ewhtmlemail/ewhtmlemail.c
r8321 r8322 48 48 /* 1.3.7 - 2021-02-02 - sorted phases by distance as some hypoinverse files from dbselect output were SCNL sorted */ 49 49 50 #define VERSION_STR "1.3.7 - 2021-02-0 2"50 #define VERSION_STR "1.3.7 - 2021-02-08" 51 51 52 52 #define MAX_GE_MARKERS 20 … … 259 259 static int phase_dist_compare( const void* a, const void* b ) { 260 260 int ret_value = 0; 261 struct Hpck *a_pick = (struct Hpck *) a, *b_pick = (struct Hpck *) b;261 struct Hpck *a_pick = *((struct Hpck **) a), *b_pick = * ((struct Hpck **) b); 262 262 if (a_pick->dist < b_pick->dist) { 263 263 ret_value=-1; … … 637 637 arc = calloc(1, sizeof(HypoArc)); 638 638 parse_arc(msgbuf, arc); 639 qsort( arc->phases, arc->num_phases, sizeof(struct Hpck *), phase_dist_compare);639 qsort(&(arc->phases), arc->num_phases, sizeof(struct Hpck *), phase_dist_compare); 640 640 if (!UseML && !UseMW) { 641 641 process_message(arc, NULL, NULL, reclogo);
Note: See TracChangeset
for help on using the changeset viewer.