summaryrefslogtreecommitdiffstats
path: root/sys/dev/sr/if_sr.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-01-26 16:41:21 +0000
committerharti <harti@FreeBSD.org>2004-01-26 16:41:21 +0000
commiteefcd12e91a2feb9008f0da7d17fd03a990ae209 (patch)
tree15e0ebdf55d7e52d91df9854057167ee12f99896 /sys/dev/sr/if_sr.c
parent6f8ce9616a6ce904600e756a8ab2336f6ea6ba80 (diff)
downloadFreeBSD-src-eefcd12e91a2feb9008f0da7d17fd03a990ae209.zip
FreeBSD-src-eefcd12e91a2feb9008f0da7d17fd03a990ae209.tar.gz
Get rid of the last two uses of NG_NODELEN + 1 in the base system by
replacing them with NG_NODESIZ.
Diffstat (limited to 'sys/dev/sr/if_sr.c')
-rw-r--r--sys/dev/sr/if_sr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c
index 745dada..92889c2 100644
--- a/sys/dev/sr/if_sr.c
+++ b/sys/dev/sr/if_sr.c
@@ -143,7 +143,7 @@ struct sr_softc {
int running; /* something is attached so we are running */
int dcd; /* do we have dcd? */
/* ---netgraph bits --- */
- char nodename[NG_NODELEN + 1]; /* store our node name */
+ char nodename[NG_NODESIZ]; /* store our node name */
int datahooks; /* number of data hooks attached */
node_p node; /* netgraph node */
hook_p hook; /* data hook */
OpenPOWER on IntegriCloud