Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
f4ed22ae
Commit
f4ed22ae
authored
Sep 01, 2015
by
Axel Auweter
Browse files
Get hostname for dcdbtools from DCDB_HOSTNAME environment variable if set.
parent
7071b1c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
DCDBTools/dcdbconfig/dcdbconfig.cpp
View file @
f4ed22ae
...
...
@@ -34,7 +34,11 @@ int main(int argc, char* argv[])
}
int
ret
;
const
char
*
host
=
"localhost"
;
const
char
*
host
=
getenv
(
"DCDB_HOSTNAME"
);
if
(
!
host
)
{
host
=
"localhost"
;
}
while
((
ret
=
getopt
(
argc
,
argv
,
"+h:"
))
!=-
1
)
{
switch
(
ret
)
{
case
'h'
:
...
...
DCDBTools/dcdbquery/dcdbquery.cpp
View file @
f4ed22ae
...
...
@@ -50,7 +50,11 @@ int main(int argc, char* argv[])
/* Get the options */
int
ret
;
const
char
*
host
=
"localhost"
;
const
char
*
host
=
getenv
(
"DCDB_HOSTNAME"
);
if
(
!
host
)
{
host
=
"localhost"
;
}
while
((
ret
=
getopt
(
argc
,
argv
,
"+h:rlf"
))
!=-
1
)
{
switch
(
ret
)
{
case
'h'
:
...
...
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