Skip to content

Commit

Permalink
encx24j600: adapt for netdev2 parameter type change
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Aug 2, 2016
1 parent f6c6c67 commit 78bc5b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/encx24j600/encx24j600.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ static inline int _packets_available(encx24j600_t *dev);
static void _get_mac_addr(netdev2_t *dev, uint8_t* buf);

/* netdev2 interface */
static int _send(netdev2_t *netdev, const struct iovec *vector, int count);
static int _recv(netdev2_t *netdev, char* buf, int len, void *info);
static int _send(netdev2_t *netdev, const struct iovec *vector, unsigned count);
static int _recv(netdev2_t *netdev, void *buf, size_t len, void *info);
static int _init(netdev2_t *dev);
static void _isr(netdev2_t *dev);
int _get(netdev2_t *dev, netopt_t opt, void *value, size_t max_len);
Expand Down Expand Up @@ -305,7 +305,7 @@ static int _init(netdev2_t *encdev)
return 0;
}

static int _send(netdev2_t *netdev, const struct iovec *vector, int count) {
static int _send(netdev2_t *netdev, const struct iovec *vector, unsigned count) {
encx24j600_t * dev = (encx24j600_t *) netdev;
lock(dev);

Expand Down Expand Up @@ -360,7 +360,7 @@ static void _get_mac_addr(netdev2_t *encdev, uint8_t* buf)
unlock(dev);
}

static int _recv(netdev2_t *netdev, char* buf, int len, void *info)
static int _recv(netdev2_t *netdev, void *buf, size_t len, void *info)
{
encx24j600_t * dev = (encx24j600_t *) netdev;
encx24j600_frame_hdr_t hdr;
Expand Down

0 comments on commit 78bc5b2

Please sign in to comment.