projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use enum ofperr in ofputil_decode_flow_removed()
[openvswitch]
/
lib
/
ofpbuf.c
diff --git
a/lib/ofpbuf.c
b/lib/ofpbuf.c
index a98242091d27a33372c4e1834b0192f843cd0b6c..a7d4c734181763e5134175d59defb8c69d658989 100644
(file)
--- a/
lib/ofpbuf.c
+++ b/
lib/ofpbuf.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira
Networks
.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira
, Inc
.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-95,7
+95,7
@@
ofpbuf_use_stub(struct ofpbuf *b, void *base, size_t allocated)
void
ofpbuf_use_const(struct ofpbuf *b, const void *data, size_t size)
{
void
ofpbuf_use_const(struct ofpbuf *b, const void *data, size_t size)
{
- ofpbuf_use__(b,
(void *) data
, size, OFPBUF_STACK);
+ ofpbuf_use__(b,
CONST_CAST(void *, data)
, size, OFPBUF_STACK);
b->size = size;
}
b->size = size;
}
@@
-408,7
+408,7
@@
ofpbuf_put_hex(struct ofpbuf *b, const char *s, size_t *n)
if (n) {
*n = b->size - initial_size;
}
if (n) {
*n = b->size - initial_size;
}
- return
(char *) s
;
+ return
CONST_CAST(char *, s)
;
}
ofpbuf_put(b, &byte, 1);
}
ofpbuf_put(b, &byte, 1);