Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
153ad3f6
Commit
153ad3f6
authored
Aug 09, 2005
by
reggie@linux.site
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes to IM code that came from Petr's review
parent
7fa1779d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
server-tools/instance-manager/IMService.cpp
server-tools/instance-manager/IMService.cpp
+1
-1
server-tools/instance-manager/options.cc
server-tools/instance-manager/options.cc
+5
-5
server-tools/instance-manager/options.h
server-tools/instance-manager/options.h
+1
-1
No files found.
server-tools/instance-manager/IMService.cpp
View file @
153ad3f6
...
@@ -66,6 +66,6 @@ int HandleServiceOptions(Options options)
...
@@ -66,6 +66,6 @@ int HandleServiceOptions(Options options)
}
}
}
}
else
else
ret_val
=
winService
.
Init
()
?
0
:
1
;
ret_val
=
!
winService
.
Init
()
;
return
ret_val
;
return
ret_val
;
}
}
server-tools/instance-manager/options.cc
View file @
153ad3f6
...
@@ -291,23 +291,23 @@ void Options::cleanup()
...
@@ -291,23 +291,23 @@ void Options::cleanup()
#ifdef __WIN__
#ifdef __WIN__
void
Options
::
setup_windows_defaults
()
int
Options
::
setup_windows_defaults
()
{
{
if
(
!
GetModuleFileName
(
NULL
,
default_password_file_name
,
if
(
!
GetModuleFileName
(
NULL
,
default_password_file_name
,
sizeof
(
default_password_file_name
)))
sizeof
(
default_password_file_name
)))
return
-
1
;
return
1
;
char
*
filename
=
strstr
(
default_password_file_name
,
".exe"
);
char
*
filename
=
strstr
(
default_password_file_name
,
".exe"
);
strcpy
(
filename
,
".passwd"
);
strcpy
(
filename
,
".passwd"
);
if
(
!
GetModuleFileName
(
NULL
,
default_log_file_name
,
if
(
!
GetModuleFileName
(
NULL
,
default_log_file_name
,
sizeof
(
default_log_file_name
)))
sizeof
(
default_log_file_name
)))
return
-
1
;
return
1
;
filename
=
strstr
(
default_log_file_name
,
".exe"
);
filename
=
strstr
(
default_log_file_name
,
".exe"
);
strcpy
(
filename
,
".log"
);
strcpy
(
filename
,
".log"
);
if
(
!
GetModuleFileName
(
NULL
,
windows_config_file
,
if
(
!
GetModuleFileName
(
NULL
,
windows_config_file
,
sizeof
(
windows_config_file
)))
sizeof
(
windows_config_file
)))
return
-
1
;
return
1
;
char
*
slash
=
strrchr
(
windows_config_file
,
'\\'
);
char
*
slash
=
strrchr
(
windows_config_file
,
'\\'
);
strcpy
(
slash
,
"
\\
my.ini"
);
strcpy
(
slash
,
"
\\
my.ini"
);
return
0
;
return
0
;
...
...
server-tools/instance-manager/options.h
View file @
153ad3f6
...
@@ -52,7 +52,7 @@ struct Options
...
@@ -52,7 +52,7 @@ struct Options
int
load
(
int
argc
,
char
**
argv
);
int
load
(
int
argc
,
char
**
argv
);
void
cleanup
();
void
cleanup
();
#ifdef __WIN__
#ifdef __WIN__
void
setup_windows_defaults
(
const
char
*
progname
);
int
setup_windows_defaults
(
const
char
*
progname
);
#endif
#endif
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment