From owner-svn-src-all@FreeBSD.ORG Tue Jun 9 07:14:33 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A3081065673; Tue, 9 Jun 2009 07:14:33 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2E2A58FC19; Tue, 9 Jun 2009 07:14:33 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n597EXhP060042; Tue, 9 Jun 2009 07:14:33 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n597EWe0060038; Tue, 9 Jun 2009 07:14:32 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <200906090714.n597EWe0060038@svn.freebsd.org> From: Warner Losh Date: Tue, 9 Jun 2009 07:14:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193813 - in head/sys/dev: ce cp ctau cx X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 07:14:33 -0000 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; }