diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2015-05-25 17:55:41 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2015-05-25 17:55:41 +0200 |
commit | 66079abd1083a00f165b8fc62eec885f872b903c (patch) | |
tree | 59ea7cba7e00a5c8e793a8e870961b922a900ea8 /src/biruda.c | |
parent | 1c0c08414529cc10c45cd34a1a5188970c98a892 (diff) | |
download | biruda-66079abd1083a00f165b8fc62eec885f872b903c.tar.gz biruda-66079abd1083a00f165b8fc62eec885f872b903c.tar.bz2 |
various fixes on Windows
Diffstat (limited to 'src/biruda.c')
-rw-r--r-- | src/biruda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/biruda.c b/src/biruda.c index c46b580..e150627 100644 --- a/src/biruda.c +++ b/src/biruda.c @@ -387,7 +387,6 @@ int main( int argc, char *argv[] ) } } int ret; -#ifndef _WIN32 unsigned int port = DEFAULT_WEBSERVER_PORT; if( args_info.config_file_given ) { cfg_t *webserver_cfg = cfg_getnsec( cfg, "webserver", 0 ); @@ -405,10 +404,11 @@ int main( int argc, char *argv[] ) port = atoi( args_info.inputs[1] ); } +#ifndef _WIN32 ret = start_interactive( ( in == stdin ) ? !args_info.no_colors_given : false, host, port, in ); #else if( args_info.filename_given ) { - ret = start_interactive( false, in ); + ret = start_interactive( false, host, port, in ); } else { fprintf( stderr, "FATAL: No CLI mode implemented for Windows currently!\n" ); ret = -1; |