projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3a75cda
)
ofp-util: Use our usual variable naming convention in make_ofp_error_msg().
author
Ben Pfaff
<blp@nicira.com>
Thu, 4 Nov 2010 17:33:28 +0000
(10:33 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 5 Nov 2010 16:25:37 +0000
(09:25 -0700)
lib/ofp-util.c
patch
|
blob
|
history
diff --git
a/lib/ofp-util.c
b/lib/ofp-util.c
index c95e7c6d7f9be37f01500af3820db67dbbe8a068..261c67ad076c62752520a43d4ae5d00e0445bd1f 100644
(file)
--- a/
lib/ofp-util.c
+++ b/
lib/ofp-util.c
@@
-888,7
+888,7
@@
make_ofp_error_msg(int error, const struct ofp_header *oh)
oem->code = htons(code);
} else {
struct ofp_error_msg *oem;
oem->code = htons(code);
} else {
struct ofp_error_msg *oem;
- struct nx_vendor_error *
o
ve;
+ struct nx_vendor_error *
n
ve;
uint32_t vendor_id;
vendor_id = vendor_code_to_id(vendor);
uint32_t vendor_id;
vendor_id = vendor_code_to_id(vendor);
@@
-898,15
+898,15
@@
make_ofp_error_msg(int error, const struct ofp_header *oh)
return NULL;
}
return NULL;
}
- oem = make_openflow_xid(len + sizeof *oem + sizeof *
o
ve,
+ oem = make_openflow_xid(len + sizeof *oem + sizeof *
n
ve,
OFPT_ERROR, xid, &buf);
oem->type = htons(NXET_VENDOR);
oem->code = htons(NXVC_VENDOR_ERROR);
OFPT_ERROR, xid, &buf);
oem->type = htons(NXET_VENDOR);
oem->code = htons(NXVC_VENDOR_ERROR);
-
ove = ofpbuf_put_uninit(buf, sizeof *o
ve);
-
o
ve->vendor = htonl(vendor_id);
-
o
ve->type = htons(type);
-
o
ve->code = htons(code);
+
nve = ofpbuf_put_uninit(buf, sizeof *n
ve);
+
n
ve->vendor = htonl(vendor_id);
+
n
ve->type = htons(type);
+
n
ve->code = htons(code);
}
if (len) {
}
if (len) {