git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix lib/dhparams.c build failure fallout from earlier build system changes.
[sliver-openvswitch.git]
/
lib
/
netdev.c
diff --git
a/lib/netdev.c
b/lib/netdev.c
index
92c1a34
..
9bedb69
100644
(file)
--- a/
lib/netdev.c
+++ b/
lib/netdev.c
@@
-507,8
+507,7
@@
static void
pad_to_minimum_length(struct ofpbuf *buffer)
{
if (buffer->size < ETH_TOTAL_MIN) {
pad_to_minimum_length(struct ofpbuf *buffer)
{
if (buffer->size < ETH_TOTAL_MIN) {
- size_t shortage = ETH_TOTAL_MIN - buffer->size;
- memset(ofpbuf_put_uninit(buffer, shortage), 0, shortage);
+ ofpbuf_put_zeros(buffer, ETH_TOTAL_MIN - buffer->size);
}
}
}
}