summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-03-13 18:50:38 +0000
committerarchie <archie@FreeBSD.org>2000-03-13 18:50:38 +0000
commitea3525dea40ecd01441827e6d2185f4088d4d997 (patch)
treee6316dd6ea770c08a008ce48b8a744c6835033bc /sys/netgraph
parent1d2318b7df5af3e84c4f90637b1accb6a8925dd0 (diff)
downloadFreeBSD-src-ea3525dea40ecd01441827e6d2185f4088d4d997.zip
FreeBSD-src-ea3525dea40ecd01441827e6d2185f4088d4d997.tar.gz
Fix typo: "ng_parse_fixedsstring_info" -> "ng_parse_fixedstring_info"
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_parse.c16
-rw-r--r--sys/netgraph/ng_parse.h6
2 files changed, 11 insertions, 11 deletions
diff --git a/sys/netgraph/ng_parse.c b/sys/netgraph/ng_parse.c
index a1e0f8e..90c6b45 100644
--- a/sys/netgraph/ng_parse.c
+++ b/sys/netgraph/ng_parse.c
@@ -648,7 +648,7 @@ ng_fixedstring_parse(const struct ng_parse_type *type,
const char *s, int *off, const u_char *const start,
u_char *const buf, int *buflen)
{
- const struct ng_parse_fixedsstring_info *const fi = type->info;
+ const struct ng_parse_fixedstring_info *const fi = type->info;
char *sval;
int len;
@@ -669,7 +669,7 @@ static int
ng_fixedstring_unparse(const struct ng_parse_type *type,
const u_char *data, int *off, char *cbuf, int cbuflen)
{
- const struct ng_parse_fixedsstring_info *const fi = type->info;
+ const struct ng_parse_fixedstring_info *const fi = type->info;
int error, temp = *off;
if ((error = ng_string_unparse(type, data, &temp, cbuf, cbuflen)) != 0)
@@ -682,7 +682,7 @@ static int
ng_fixedstring_getDefault(const struct ng_parse_type *type,
const u_char *const start, u_char *buf, int *buflen)
{
- const struct ng_parse_fixedsstring_info *const fi = type->info;
+ const struct ng_parse_fixedstring_info *const fi = type->info;
if (*buflen < fi->bufSize)
return (ERANGE);
@@ -701,7 +701,7 @@ const struct ng_parse_type ng_parse_fixedstring_type = {
NULL
};
-const struct ng_parse_fixedsstring_info ng_parse_nodebuf_info = {
+const struct ng_parse_fixedstring_info ng_parse_nodebuf_info = {
NG_NODELEN + 1
};
const struct ng_parse_type ng_parse_nodebuf_type = {
@@ -709,7 +709,7 @@ const struct ng_parse_type ng_parse_nodebuf_type = {
&ng_parse_nodebuf_info
};
-const struct ng_parse_fixedsstring_info ng_parse_hookbuf_info = {
+const struct ng_parse_fixedstring_info ng_parse_hookbuf_info = {
NG_HOOKLEN + 1
};
const struct ng_parse_type ng_parse_hookbuf_type = {
@@ -717,7 +717,7 @@ const struct ng_parse_type ng_parse_hookbuf_type = {
&ng_parse_hookbuf_info
};
-const struct ng_parse_fixedsstring_info ng_parse_pathbuf_info = {
+const struct ng_parse_fixedstring_info ng_parse_pathbuf_info = {
NG_PATHLEN + 1
};
const struct ng_parse_type ng_parse_pathbuf_type = {
@@ -725,7 +725,7 @@ const struct ng_parse_type ng_parse_pathbuf_type = {
&ng_parse_pathbuf_info
};
-const struct ng_parse_fixedsstring_info ng_parse_typebuf_info = {
+const struct ng_parse_fixedstring_info ng_parse_typebuf_info = {
NG_TYPELEN + 1
};
const struct ng_parse_type ng_parse_typebuf_type = {
@@ -733,7 +733,7 @@ const struct ng_parse_type ng_parse_typebuf_type = {
&ng_parse_typebuf_info
};
-const struct ng_parse_fixedsstring_info ng_parse_cmdbuf_info = {
+const struct ng_parse_fixedstring_info ng_parse_cmdbuf_info = {
NG_CMDSTRLEN + 1
};
const struct ng_parse_type ng_parse_cmdbuf_type = {
diff --git a/sys/netgraph/ng_parse.h b/sys/netgraph/ng_parse.h
index 0dbf769..1543c6b 100644
--- a/sys/netgraph/ng_parse.h
+++ b/sys/netgraph/ng_parse.h
@@ -126,7 +126,7 @@
type for the whole structure ('//' comments used to avoid breakage).
// Super-type info for 'label' field
- struct ng_parse_fixedsstring_info foo_label_info = { 8 };
+ struct ng_parse_fixedstring_info foo_label_info = { 8 };
// Parse type for 'label' field
struct ng_parse_type foo_label_type = {
@@ -385,11 +385,11 @@ extern const struct ng_parse_type ng_parse_string_type;
* a terminating NUL character.
*
* Default value: Empty string
- * Additional info: struct ng_parse_fixedsstring_info *
+ * Additional info: struct ng_parse_fixedstring_info *
*/
extern const struct ng_parse_type ng_parse_fixedstring_type;
-struct ng_parse_fixedsstring_info {
+struct ng_parse_fixedstring_info {
int bufSize; /* size of buffer (including NUL) */
};
OpenPOWER on IntegriCloud