comparison svr-agentfwd.c @ 108:10f4d3319780

- added circular buffering for channels - added stderr support for the client - cleaned up a bunch of "unused" warnings, duplicated header definitions - added exit-status support for the client
author Matt Johnston <matt@ucc.asn.au>
date Thu, 26 Aug 2004 13:16:40 +0000
parents b0316ce64e4b
children 2e9d1f29c50f
comparison
equal deleted inserted replaced
107:d3eb1fa8484e 108:10f4d3319780
95 } 95 }
96 96
97 /* accepts a connection on the forwarded socket and opens a new channel for it 97 /* accepts a connection on the forwarded socket and opens a new channel for it
98 * back to the client */ 98 * back to the client */
99 /* returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */ 99 /* returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */
100 static void agentaccept(struct Listener * listener, int sock) { 100 static void agentaccept(struct Listener *UNUSED(listener), int sock) {
101 101
102 int fd; 102 int fd;
103 103
104 fd = accept(sock, NULL, NULL); 104 fd = accept(sock, NULL, NULL);
105 if (fd < 0) { 105 if (fd < 0) {