comparison cli-chansession.c @ 253:84925eceeb13

* rename infd/outfd to writefd/readfd, to avoid confusion
author Matt Johnston <matt@ucc.asn.au>
date Thu, 20 Oct 2005 16:53:12 +0000
parents 161557a9dde8
children 6b41e2cbf071 baea1d43e7eb
comparison
equal deleted inserted replaced
251:b02e8eef3c3a 253:84925eceeb13
338 } 338 }
339 339
340 static int cli_initchansess(struct Channel *channel) { 340 static int cli_initchansess(struct Channel *channel) {
341 341
342 342
343 channel->infd = STDOUT_FILENO; 343 channel->writefd = STDOUT_FILENO;
344 setnonblocking(STDOUT_FILENO); 344 setnonblocking(STDOUT_FILENO);
345 345
346 channel->outfd = STDIN_FILENO; 346 channel->readfd = STDIN_FILENO;
347 setnonblocking(STDIN_FILENO); 347 setnonblocking(STDIN_FILENO);
348 348
349 channel->errfd = STDERR_FILENO; 349 channel->errfd = STDERR_FILENO;
350 setnonblocking(STDERR_FILENO); 350 setnonblocking(STDERR_FILENO);
351 351