Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Fix readline-related build failures
· 9a942a50
Andrew Price
authored
Oct 19, 2015
9a942a50
Fix build failure on Debian Wheezy
· 32d6e80e
Andrew Price
authored
Oct 19, 2015
32d6e80e
Hide whitespace changes
Inline
Side-by-side
src/client/main.c
View file @
32d6e80e
...
...
@@ -532,9 +532,9 @@ int main(int argc, char **argv)
/* setup readline support */
UseRL
=
1
;
rl_readline_name
=
"Milliways"
;
rl_attempted_completion_function
=
(
CPPFunction
*
)
complete_entry
;
rl_completion_entry_function
=
(
CPFunction
*
)
dummy_list
;
rl_directory_rewrite_hook
=
(
Function
*
)
expand_script_dir
;
rl_attempted_completion_function
=
complete_entry
;
rl_completion_entry_function
=
dummy_list
;
rl_directory_rewrite_hook
=
expand_script_dir
;
}
signal
(
SIGPIPE
,
SIG_IGN
);
...
...
src/server/servercfg.c
View file @
32d6e80e
...
...
@@ -145,7 +145,7 @@ static int cfg_load_default_path(void)
const
char
*
etcconf
;
int
ret
;
homedir
=
secure_
getenv
(
"HOME"
);
homedir
=
getenv
(
"HOME"
);
if
(
homedir
)
{
ret
=
asprintf
(
&
homeconf
,
"%s/.mwserv.conf"
,
homedir
);
if
(
ret
>
0
)
{
...
...