comparison dbutil.c @ 433:c216212001fc

Fix for -pedantic -ansi compilation, change // to /**/, plus some signedness and trailing-comma-in-array issues
author Matt Johnston <matt@ucc.asn.au>
date Fri, 16 Feb 2007 14:42:08 +0000
parents 1afa503e33f5
children c1e9c81d1d27 357a2e2e9bcc 12d845ab7b5f
comparison
equal deleted inserted replaced
432:517e76bdfb2d 433:c216212001fc
197 197
198 memset(&hints, 0, sizeof(hints)); 198 memset(&hints, 0, sizeof(hints));
199 hints.ai_family = AF_UNSPEC; /* TODO: let them flag v4 only etc */ 199 hints.ai_family = AF_UNSPEC; /* TODO: let them flag v4 only etc */
200 hints.ai_socktype = SOCK_STREAM; 200 hints.ai_socktype = SOCK_STREAM;
201 201
202 // for calling getaddrinfo: 202 /* for calling getaddrinfo:
203 // address == NULL and !AI_PASSIVE: local loopback 203 address == NULL and !AI_PASSIVE: local loopback
204 // address == NULL and AI_PASSIVE: all interfaces 204 address == NULL and AI_PASSIVE: all interfaces
205 // address != NULL: whatever the address says 205 address != NULL: whatever the address says */
206 if (!address) { 206 if (!address) {
207 TRACE(("dropbear_listen: local loopback")) 207 TRACE(("dropbear_listen: local loopback"))
208 } else { 208 } else {
209 if (address[0] == '\0') { 209 if (address[0] == '\0') {
210 TRACE(("dropbear_listen: all interfaces")) 210 TRACE(("dropbear_listen: all interfaces"))