svn commit: r193813 - in head/sys/dev: ce cp ctau cx
Warner Losh
imp at FreeBSD.org
Tue Jun 9 07:14:33 UTC 2009
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;
}
More information about the svn-src-head
mailing list