comparison svr-main.c @ 165:0cfba3034be5

Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place
author Matt Johnston <matt@ucc.asn.au>
date Sun, 02 Jan 2005 20:25:56 +0000
parents 364a75cfebab
children c5d3ef11155f f4cf0415fec1
comparison
equal deleted inserted replaced
161:b9d3f725e00b 165:0cfba3034be5
245 close(childsock); 245 close(childsock);
246 continue; 246 continue;
247 } 247 }
248 248
249 if (pipe(childpipe) < 0) { 249 if (pipe(childpipe) < 0) {
250 TRACE(("error creating child pipe")); 250 TRACE(("error creating child pipe"))
251 close(childsock); 251 close(childsock);
252 continue; 252 continue;
253 } 253 }
254 254
255 if ((childpid = fork()) == 0) { 255 if ((childpid = fork()) == 0) {
367 unsigned int i; 367 unsigned int i;
368 char* errstring = NULL; 368 char* errstring = NULL;
369 unsigned int sockpos = 0; 369 unsigned int sockpos = 0;
370 int nsock; 370 int nsock;
371 371
372 TRACE(("listensockets: %d to try\n", svr_opts.portcount)); 372 TRACE(("listensockets: %d to try\n", svr_opts.portcount))
373 373
374 for (i = 0; i < svr_opts.portcount; i++) { 374 for (i = 0; i < svr_opts.portcount; i++) {
375 375
376 TRACE(("listening on '%s'", svr_opts.ports[i])); 376 TRACE(("listening on '%s'", svr_opts.ports[i]))
377 377
378 nsock = dropbear_listen(NULL, svr_opts.ports[i], &sock[sockpos], 378 nsock = dropbear_listen(NULL, svr_opts.ports[i], &sock[sockpos],
379 sockcount - sockpos, 379 sockcount - sockpos,
380 &errstring, maxfd); 380 &errstring, maxfd);
381 381