Date: Tue, 9 Jun 2009 07:14:32 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r193813 - in head/sys/dev: ce cp ctau cx Message-ID: <200906090714.n597EWe0060038@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Tue Jun 9 07:14:32 2009 New Revision: 193813 URL: http://svn.freebsd.org/changeset/base/193813 Log: Use new spelling of the NG_*LEN constants. Modified: head/sys/dev/ce/if_ce.c head/sys/dev/cp/if_cp.c head/sys/dev/ctau/if_ct.c head/sys/dev/cx/if_cx.c Modified: head/sys/dev/ce/if_ce.c ============================================================================== --- head/sys/dev/ce/if_ce.c Tue Jun 9 07:07:20 2009 (r193812) +++ head/sys/dev/ce/if_ce.c Tue Jun 9 07:14:32 2009 (r193813) @@ -165,7 +165,7 @@ typedef struct _drv_t { ce_chan_t *chan; struct ifqueue rqueue; #ifdef NETGRAPH - char nodename [NG_NODELEN+1]; + char nodename [NG_NODESIZE]; hook_p hook; hook_p debug_hook; node_p node; @@ -2358,7 +2358,7 @@ static int ng_ce_rcvmsg (node_p node, st (resp)->header.typecookie = NGM_CE_COOKIE; (resp)->header.cmd = msg->header.cmd; #endif - strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRLEN); + strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRSIZ); } break; } Modified: head/sys/dev/cp/if_cp.c ============================================================================== --- head/sys/dev/cp/if_cp.c Tue Jun 9 07:07:20 2009 (r193812) +++ head/sys/dev/cp/if_cp.c Tue Jun 9 07:14:32 2009 (r193813) @@ -111,7 +111,7 @@ typedef struct _drv_t { cp_board_t *board; cp_dma_mem_t dmamem; #ifdef NETGRAPH - char nodename [NG_NODELEN+1]; + char nodename [NG_NODESIZE]; hook_p hook; hook_p debug_hook; node_p node; @@ -2121,7 +2121,7 @@ static int ng_cp_rcvmsg (node_p node, it l += print_e1_stats (s + l, d->chan); } else l += sprintf (s + l, "Error: node not connect to channel"); - strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRLEN); + strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRSIZ); } break; } Modified: head/sys/dev/ctau/if_ct.c ============================================================================== --- head/sys/dev/ctau/if_ct.c Tue Jun 9 07:07:20 2009 (r193812) +++ head/sys/dev/ctau/if_ct.c Tue Jun 9 07:14:32 2009 (r193813) @@ -112,7 +112,7 @@ typedef struct _drv_t { ct_dma_mem_t dmamem; int running; #ifdef NETGRAPH - char nodename [NG_NODELEN+1]; + char nodename [NG_NODESIZ]; hook_p hook; hook_p debug_hook; node_p node; @@ -2061,7 +2061,7 @@ static int ng_ct_rcvmsg (node_p node, it l += print_stats (s + l, d->chan, 1); l += print_modems (s + l, d->chan, 1); l += print_e1_stats (s + l, d->chan); - strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRLEN); + strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRSIZ); } break; } Modified: head/sys/dev/cx/if_cx.c ============================================================================== --- head/sys/dev/cx/if_cx.c Tue Jun 9 07:07:20 2009 (r193812) +++ head/sys/dev/cx/if_cx.c Tue Jun 9 07:14:32 2009 (r193813) @@ -137,7 +137,7 @@ typedef struct _drv_t { int cd; int running; #ifdef NETGRAPH - char nodename [NG_NODELEN+1]; + char nodename [NG_NODESIZ]; hook_p hook; hook_p debug_hook; node_p node; @@ -2399,7 +2399,7 @@ static int ng_cx_rcvmsg (node_p node, it l += print_chan (s + l, d->chan); l += print_stats (s + l, d->chan, 1); l += print_modems (s + l, d->chan, 1); - strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRLEN); + strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRSIZ); } break; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906090714.n597EWe0060038>