From 46edc8ff5977afa9b820a2ab02a99c6bbc71b27a Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 3 Apr 2022 13:54:21 -0500 Subject: [PATCH] Fix windows & vms engine compile. --- src/engine/filent.cpp | 4 ++-- src/engine/filevms.cpp | 2 +- src/engine/pathnt.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/engine/filent.cpp b/src/engine/filent.cpp index e32879424..faf483355 100644 --- a/src/engine/filent.cpp +++ b/src/engine/filent.cpp @@ -185,7 +185,7 @@ void file_dirscan_( file_info_t * const d, scanback func, void * closure ) * There will be no trailing slash in $(p), but there will be one in * $(p2). But, that seems rather fragile. */ - OBJECT * const dir_no_slash = object_new_range( name, 2 ); + OBJECT * dir_no_slash = object_new_range( name, 2 ); (*func)( closure, d->name, 1 /* stat()'ed */, &d->time ); (*func)( closure, dir_no_slash, 1 /* stat()'ed */, &d->time ); object_free( dir_no_slash ); @@ -379,7 +379,7 @@ void file_archscan( char const * arch, scanback func, void * closure ) object_str( archive->file->name ), object_str( member_file->name ) ); { - OBJECT * const member = object_new( buf ); + OBJECT * member = object_new( buf ); (*func)( closure, member, 1 /* time valid */, &member_file->time ); object_free( member ); } diff --git a/src/engine/filevms.cpp b/src/engine/filevms.cpp index 6dc84ae63..cf24b8c60 100644 --- a/src/engine/filevms.cpp +++ b/src/engine/filevms.cpp @@ -363,7 +363,7 @@ void file_archscan( char const * arch, scanback func, void * closure ) object_str( archive->file->name ), object_str( member_file->name ) ); { - OBJECT * const member = object_new( buf ); + OBJECT * member = object_new( buf ); (*func)( closure, member, 1 /* time valid */, &member_file->time ); object_free( member ); } diff --git a/src/engine/pathnt.cpp b/src/engine/pathnt.cpp index 2e23a1617..925b2bd39 100644 --- a/src/engine/pathnt.cpp +++ b/src/engine/pathnt.cpp @@ -141,7 +141,7 @@ static int canonicWindowsPath( char const * const path, int32_t path_length, { char const * const dir = path; const int32_t dir_length = int32_t(p - path); - OBJECT * const dir_obj = object_new_range( dir, dir_length ); + OBJECT * dir_obj = object_new_range( dir, dir_length ); int found; path_key_entry * const result = (path_key_entry *)hash_insert( path_key_cache, dir_obj, &found ); @@ -395,7 +395,7 @@ OBJECT * path_as_key( OBJECT * path ) static void free_path_key_entry( void * xentry, void * const data ) { - path_key_entry * const entry = (path_key_entry *)xentry; + path_key_entry * entry = (path_key_entry *)xentry; if (entry->path) object_free( entry->path ); if (entry->key) object_free( entry->key ); }