Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
0e99bcba
Commit
0e99bcba
authored
Feb 22, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More mysql
parent
4d51d968
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
wb/lib/wb/src/wb_lfu.cpp
wb/lib/wb/src/wb_lfu.cpp
+8
-4
No files found.
wb/lib/wb/src/wb_lfu.cpp
View file @
0e99bcba
/*
* Proview $Id: wb_lfu.cpp,v 1.1
0 2008-02-04 13:34:49
claes Exp $
* Proview $Id: wb_lfu.cpp,v 1.1
1 2008-02-22 09:23:44
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -2514,12 +2514,16 @@ pwr_tStatus lfu_GetVolumeCnf( char *name, pwr_tVid *vid, pwr_tCid *cid, ldh_eVol
pwr_tStatus
lfu_ParseDbmsServer
(
char
*
server
,
char
*
user
,
char
*
password
,
unsigned
int
*
port
,
char
*
host
)
{
char
lserver
[
80
];
if
(
strcmp
(
server
,
""
)
==
0
)
{
if
(
!
cnf_get_value
(
"mysqlServer"
,
host
))
{
if
(
!
cnf_get_value
(
"mysqlServer"
,
lserver
))
{
printf
(
"** mysql Server not defined
\n
"
);
return
LDH__NOSERVER
;
}
}
else
strcpy
(
lserver
,
server
);
// Parse server string: username:password@port:host
char
lhost
[
80
];
...
...
@@ -2529,11 +2533,11 @@ pwr_tStatus lfu_ParseDbmsServer( char *server, char *user, char *password,
char
str2
[
2
][
80
];
int
nr
;
nr
=
dcli_parse
(
server
,
"@"
,
""
,
(
char
*
)
str1
,
nr
=
dcli_parse
(
l
server
,
"@"
,
""
,
(
char
*
)
str1
,
sizeof
(
str1
)
/
sizeof
(
str1
[
0
]),
sizeof
(
str1
[
0
]),
0
);
if
(
nr
==
1
)
strncpy
(
lhost
,
server
,
sizeof
(
lhost
));
strncpy
(
lhost
,
l
server
,
sizeof
(
lhost
));
else
if
(
nr
>=
2
)
{
strncpy
(
lhost
,
str1
[
1
],
sizeof
(
lhost
));
...
...
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