aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2009-06-09 07:14:32 +0000
committerWarner Losh <imp@FreeBSD.org>2009-06-09 07:14:32 +0000
commit2b9a8a330fa9729f18534a8a0b5a42d39fd24b61 (patch)
tree224a1b7f81f28364ffa073b337b1749a56d3d6e8 /sys/dev
parent0941c782f9468917c982d484923475eef65c3d97 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ce/if_ce.c4
-rw-r--r--sys/dev/cp/if_cp.c4
-rw-r--r--sys/dev/ctau/if_ct.c4
-rw-r--r--sys/dev/cx/if_cx.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/ce/if_ce.c b/sys/dev/ce/if_ce.c
index efd6f00b6168..2118c3d8cefb 100644
--- a/sys/dev/ce/if_ce.c
+++ b/sys/dev/ce/if_ce.c
@@ -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, struct ng_mesg *msg,
(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;
}
diff --git a/sys/dev/cp/if_cp.c b/sys/dev/cp/if_cp.c
index b72f827fd0cb..75e329738aa3 100644
--- a/sys/dev/cp/if_cp.c
+++ b/sys/dev/cp/if_cp.c
@@ -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, item_p item, hook_p lasthook)
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;
}
diff --git a/sys/dev/ctau/if_ct.c b/sys/dev/ctau/if_ct.c
index 9362ac1af8d4..de3408b983ff 100644
--- a/sys/dev/ctau/if_ct.c
+++ b/sys/dev/ctau/if_ct.c
@@ -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, item_p item, hook_p lasthook)
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;
}
diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c
index ad051677e0bf..c0d354ae2d45 100644
--- a/sys/dev/cx/if_cx.c
+++ b/sys/dev/cx/if_cx.c
@@ -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, item_p item, hook_p lasthook)
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;
}