1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Try to clean up some of these nasty warnings.. This code is not just

twisted, it's seriously evil!
This commit is contained in:
Jordan K. Hubbard 1995-02-12 09:53:03 +00:00
parent ad23c66664
commit bb71d76710
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6330
3 changed files with 6 additions and 5 deletions

View File

@ -224,7 +224,7 @@ int deep_opt;
ipnt += 8;
}
else {
#ifdef ultrix
#if defined(__BSD__)
set_733((char*)Rock + ipnt, (lstatbuf->st_rdev >> 16) >> 16);
#else
set_733((char*)Rock + ipnt, lstatbuf->st_rdev >> 32);

View File

@ -62,7 +62,7 @@ extern char * strdup(const char *);
#endif
/* WALNUT CREEK CDROM HACK -- rab 950126 */
static const char trans_tbl[] = "00_TRANS.TBL";
static char trans_tbl[] = "00_TRANS.TBL";
static unsigned char symlink_buff[256];

View File

@ -219,7 +219,7 @@ static void dump_filelist(){
};
#endif
int FDECL2(compare_dirs, const struct directory_entry **, r, const struct directory_entry **, l) {
int FDECL2(compare_dirs, struct directory_entry **, r, struct directory_entry **, l) {
char * rpnt, *lpnt;
rpnt = (*r)->isorec.name;
@ -264,7 +264,8 @@ void FDECL1(sort_directory, struct directory_entry **, sort_dir){
s_entry = s_entry->next;
};
qsort(sortlist, dcount, sizeof(struct directory_entry *), compare_dirs);
qsort(sortlist, dcount, sizeof(struct directory_entry *),
(void *)compare_dirs);
/* Now reassemble the linked list in the proper sorted order */
for(i=0; i<dcount-1; i++)
@ -577,7 +578,7 @@ void generate_path_tables(){
do{
fix = 0;
qsort(&pathlist[1], next_path_index-1, sizeof(struct directory *), compare_paths);
qsort(&pathlist[1], next_path_index-1, sizeof(struct directory *), (void *)compare_paths);
for(j=1; j<next_path_index; j++)
if(pathlist[j]->path_index != j){