Platform: Compaq OpenVMS Alpha 7.3 Compiler: Compaq C T6.5 The following patch resolves compile problems with the HLINK.C module.
The cast on function argument for the qsort() routine was wrong, and not allowing the compile to complete. When the function definiton of the hlink_compare() is corrected to have the const qualifiers, the cast inside the qsort() function call is no longer needed. -John [EMAIL PROTECTED] Personal Opinion Only EAGLE> gdiff -u ref_src:hlink.c lcl_src:hlink.c_unix --- ref_src:hlink.c Sat Jan 5 13:27:03 2002 +++ lcl_src:hlink.c_unix Sat Jan 12 19:28:00 2002 @@ -23,7 +23,8 @@ extern int verbose; #if SUPPORT_HARD_LINKS -static int hlink_compare(struct file_struct *f1,struct file_struct *f2) +static int hlink_compare + (const struct file_struct *f1, const struct file_struct *f2) { if (!S_ISREG(f1->mode) && !S_ISREG(f2->mode)) return 0; if (!S_ISREG(f1->mode)) return -1; @@ -60,7 +61,7 @@ qsort(hlink_list,flist->count, sizeof(hlink_list[0]), - (int (*)())hlink_compare); + (hlink_compare); hlink_count=flist->count; #endif