mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
changes to IM code that came from Petr's review
server-tools/instance-manager/IMService.cpp: syntax change requested by Petr server-tools/instance-manager/options.cc: return 1 instead of -1 server-tools/instance-manager/options.h: changed return value of setup_windows_defaults to int from void
This commit is contained in:
parent
7a42570fb7
commit
f766a1dc41
3 changed files with 7 additions and 7 deletions
|
|
@ -291,23 +291,23 @@ void Options::cleanup()
|
|||
|
||||
#ifdef __WIN__
|
||||
|
||||
void Options::setup_windows_defaults()
|
||||
int Options::setup_windows_defaults()
|
||||
{
|
||||
if (!GetModuleFileName(NULL, default_password_file_name,
|
||||
sizeof(default_password_file_name)))
|
||||
return -1;
|
||||
return 1;
|
||||
char *filename= strstr(default_password_file_name, ".exe");
|
||||
strcpy(filename, ".passwd");
|
||||
|
||||
|
||||
if (!GetModuleFileName(NULL, default_log_file_name,
|
||||
sizeof(default_log_file_name)))
|
||||
return -1;
|
||||
return 1;
|
||||
filename= strstr(default_log_file_name, ".exe");
|
||||
strcpy(filename, ".log");
|
||||
|
||||
if (!GetModuleFileName(NULL, windows_config_file,
|
||||
sizeof(windows_config_file)))
|
||||
return -1;
|
||||
return 1;
|
||||
char *slash= strrchr(windows_config_file, '\\');
|
||||
strcpy(slash, "\\my.ini");
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue