comparison cli-chansession.c @ 1295:750ec4ec4cbe

Convert #ifdef to #if, other build changes
author Matt Johnston <matt@ucc.asn.au>
date Wed, 04 May 2016 15:33:40 +0200
parents 9169e4e7cbee
children 06d52bcb8094
comparison
equal deleted inserted replaced
1294:56aba7dedbea 1295:750ec4ec4cbe
353 353
354 static int cli_initchansess(struct Channel *channel) { 354 static int cli_initchansess(struct Channel *channel) {
355 355
356 cli_init_stdpipe_sess(channel); 356 cli_init_stdpipe_sess(channel);
357 357
358 #ifdef ENABLE_CLI_AGENTFWD 358 #if DROPBEAR_CLI_AGENTFWD
359 if (cli_opts.agent_fwd) { 359 if (cli_opts.agent_fwd) {
360 cli_setup_agent(channel); 360 cli_setup_agent(channel);
361 } 361 }
362 #endif 362 #endif
363 363
377 } 377 }
378 378
379 return 0; /* Success */ 379 return 0; /* Success */
380 } 380 }
381 381
382 #ifdef ENABLE_CLI_NETCAT 382 #if DROPBEAR_CLI_NETCAT
383 383
384 static const struct ChanType cli_chan_netcat = { 384 static const struct ChanType cli_chan_netcat = {
385 0, /* sepfds */ 385 0, /* sepfds */
386 "direct-tcpip", 386 "direct-tcpip",
387 cli_init_netcat, /* inithandler */ 387 cli_init_netcat, /* inithandler */