git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
13822c9
)
make the sign of return values match the specs
author
Giuseppe Lettieri
<g.lettieri@iet.unipi.it>
Mon, 24 Sep 2012 11:33:06 +0000
(13:33 +0200)
committer
Giuseppe Lettieri
<g.lettieri@iet.unipi.it>
Mon, 24 Sep 2012 11:33:06 +0000
(13:33 +0200)
lib/netdev-pltap.c
patch
|
blob
|
history
diff --git
a/lib/netdev-pltap.c
b/lib/netdev-pltap.c
index
22b7674
..
5122551
100644
(file)
--- a/
lib/netdev-pltap.c
+++ b/
lib/netdev-pltap.c
@@
-377,7
+377,7
@@
netdev_pltap_send(struct netdev *netdev_, const void *buffer, size_t size)
struct netdev_dev_pltap *dev =
netdev_dev_pltap_cast(netdev_get_dev(netdev_));
if (dev->fd < 0 || !dev->finalized)
struct netdev_dev_pltap *dev =
netdev_dev_pltap_cast(netdev_get_dev(netdev_));
if (dev->fd < 0 || !dev->finalized)
- return
-
EAGAIN;
+ return EAGAIN;
for (;;) {
ssize_t retval;
retval = write(dev->fd, buffer, size);
for (;;) {
ssize_t retval;
retval = write(dev->fd, buffer, size);
@@
-488,13
+488,13
@@
netdev_pltap_get_etheraddr(const struct netdev *netdev,
static int
netdev_pltap_get_stats(const struct netdev *netdev OVS_UNUSED, struct netdev_stats *stats OVS_UNUSED)
{
static int
netdev_pltap_get_stats(const struct netdev *netdev OVS_UNUSED, struct netdev_stats *stats OVS_UNUSED)
{
- return
-
ENOTSUP;
+ return ENOTSUP;
}
static int
netdev_pltap_set_stats(struct netdev *netdev OVS_UNUSED, const struct netdev_stats *stats OVS_UNUSED)
{
}
static int
netdev_pltap_set_stats(struct netdev *netdev OVS_UNUSED, const struct netdev_stats *stats OVS_UNUSED)
{
- return
-
ENOTSUP;
+ return ENOTSUP;
}
static int
}
static int