diff --git a/doc/README.services_extension b/doc/README.services_extension index 2f8074c92b..29b8a7bfa1 100644 --- a/doc/README.services_extension +++ b/doc/README.services_extension @@ -156,8 +156,8 @@ See also README.trace_services (Alex Peshkov, peshkoff@mail.ru, 2011-2012) This way of doing backups is specially efficient when one needs to perform -backup/restore operation for database, located on ther server accessed using -internet, due to serious performance instrease. +backup/restore operation for database, located on a server accessed using +internet, due to serious performance increase. The simplest way to use this feature is fbsvcmgr. To backup database run approximately the following: diff --git a/src/burp/mvol.cpp b/src/burp/mvol.cpp index 4645491aec..ece902abdc 100644 --- a/src/burp/mvol.cpp +++ b/src/burp/mvol.cpp @@ -117,7 +117,7 @@ FB_UINT64 MVOL_fini_read() for (burp_fil* file = tdgbl->gbl_sw_backup_files; file; file = file->fil_next) { - if (file->fil_fd == tdgbl->file_desc) + if (file->fil_fd == tdgbl->file_desc) { file->fil_fd = INVALID_HANDLE_VALUE; } diff --git a/src/burp/split/spit.cpp b/src/burp/split/spit.cpp index e7bdbae5ce..b7d67ea82d 100644 --- a/src/burp/split/spit.cpp +++ b/src/burp/split/spit.cpp @@ -65,10 +65,10 @@ static const int mask = 0666; static DESC open_platf(const char* name, int writeFlag) { #ifdef WIN_NT - return CreateFile(name, writeFlag ? GENERIC_WRITE : GENERIC_READ, 0, NULL, - writeFlag ? CREATE_ALWAYS : OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); + return CreateFile(name, (writeFlag ? GENERIC_WRITE : GENERIC_READ), 0, NULL, + (writeFlag ? CREATE_ALWAYS : OPEN_EXISTING), FILE_ATTRIBUTE_NORMAL, 0); #else - return open(name, writeFlag ? mode_write : mode_read, mask); + return open(name, (writeFlag ? mode_write : mode_read), mask); #endif }