comparison netio.c @ 1503:78d8c3ffdfe1

use NULL instead of 0
author Francois Perrad <francois.perrad@gadz.org>
date Thu, 25 Jan 2018 18:19:49 +0100
parents 2d450c1056e3
children 5916af64acd4
comparison
equal deleted inserted replaced
1502:73aa542e76fe 1503:78d8c3ffdfe1
486 * the assigned ports may differ for address families (v4/v6) 486 * the assigned ports may differ for address families (v4/v6)
487 * causing problems for tcpip-forward 487 * causing problems for tcpip-forward
488 * caller can do a get_socket_address to discover assigned-port 488 * caller can do a get_socket_address to discover assigned-port
489 * hence, use same port for all address families 489 * hence, use same port for all address families
490 */ 490 */
491 u_int16_t *allocated_lport_p = 0; 491 u_int16_t *allocated_lport_p = NULL;
492 int allocated_lport = 0; 492 int allocated_lport = 0;
493 493
494 nsock = 0; 494 nsock = 0;
495 for (res = res0; res != NULL && nsock < sockcount; 495 for (res = res0; res != NULL && nsock < sockcount;
496 res = res->ai_next) { 496 res = res->ai_next) {