summaryrefslogtreecommitdiff
path: root/libmachdev/net.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-14 18:38:13 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-14 18:38:13 +0100
commit15243344dbf0e44764d1fa083b81903d613a43ba (patch)
tree4b6f5a9107c05625998ac5135debef62e62881e8 /libmachdev/net.c
parent513529afabbf0fddacc73334d4d2b32c1c74e695 (diff)
bettr dde
Diffstat (limited to 'libmachdev/net.c')
-rw-r--r--libmachdev/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmachdev/net.c b/libmachdev/net.c
index e04b5584..53edcd0a 100644
--- a/libmachdev/net.c
+++ b/libmachdev/net.c
@@ -513,10 +513,10 @@ device_get_status (void *d, dev_flavor_t flavor, dev_status_t status,
if (flavor == NET_FLAGS)
{
- if (*count != sizeof(short))
+ if (*count != 1)
return D_INVALID_SIZE;
- *(short *) status = netdev_flags (net->dev);
+ *(int *) status = netdev_flags (net->dev);
return D_SUCCESS;
}