8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 04:43:03 +01:00

avoid const warnings

This commit is contained in:
alexpeshkoff 2012-11-29 14:37:33 +00:00
parent faf9d908c8
commit 83ba186572

View File

@ -258,23 +258,23 @@ void BackupManager::beginBackup(thread_db* tdbb)
{
struct stat st;
PageSpace* pageSpace = database->dbb_page_manager.findPageSpace(DB_PAGE_SPACE);
char* func = NULL;
const char* func = NULL;
while (!func && fstat(pageSpace->file->fil_desc, &st) != 0)
{
if (errno != EINTR)
if (errno != EINTR)
func = "fstat";
}
while (!func && fchown(diff_file->fil_desc, st.st_uid, st.st_gid) != 0)
{
if (errno != EINTR)
if (errno != EINTR)
func = "fchown";
}
while (!func && fchmod(diff_file->fil_desc, st.st_mode) != 0)
{
if (errno != EINTR)
if (errno != EINTR)
func = "fchmod";
}
if (func)
if (func)
{
stateGuard.setSuccess();
Firebird::system_call_failed::raise(func);