Author: tjansen Date: Wed Nov 11 12:38:05 2009 New Revision: 1639 Log: Replaced constant IFNAMSIZ with the actual sizeof. If the variable size should ever change, we don't have to remember to change it here as well. Modified: trunk/pisacd/cdmain.c Modified: trunk/pisacd/cdmain.c ============================================================================== --- trunk/pisacd/cdmain.c Wed Nov 11 12:35:04 2009 (r1638) +++ trunk/pisacd/cdmain.c Wed Nov 11 12:38:05 2009 (r1639) @@ -307,7 +307,7 @@ cdconf_set_debuglevel(); /* Make default sockets */ - cd_ctx.fd_tunnel = pisa_tunnel_open_tundev(cd_ctx.ifname_tunnel, IFNAMSIZ); + cd_ctx.fd_tunnel = pisa_tunnel_open_tundev(cd_ctx.ifname_tunnel, sizeof(cd_ctx.ifname_tunnel)); cd_ctx.fd_pisaconf = pisa_conf_open_server_socket(PISA_CONF_PORT_CD); /* open peer sockets targeting the pisa server daemon,