4040
4141#define _MAX_MHR_OVERHEAD (25)
4242
43- static int _send (netdev2_t * netdev , const struct iovec * vector , int count );
44- static int _recv (netdev2_t * netdev , char * buf , int len , void * info );
43+ static int _send (netdev2_t * netdev , const struct iovec * vector , unsigned count );
44+ static int _recv (netdev2_t * netdev , void * buf , size_t len , void * info );
4545static int _init (netdev2_t * netdev );
4646static void _isr (netdev2_t * netdev );
4747static int _get (netdev2_t * netdev , netopt_t opt , void * val , size_t max_len );
@@ -97,7 +97,7 @@ static int _init(netdev2_t *netdev)
9797 return 0 ;
9898}
9999
100- static int _send (netdev2_t * netdev , const struct iovec * vector , int count )
100+ static int _send (netdev2_t * netdev , const struct iovec * vector , unsigned count )
101101{
102102 at86rf2xx_t * dev = (at86rf2xx_t * )netdev ;
103103 const struct iovec * ptr = vector ;
@@ -106,7 +106,7 @@ static int _send(netdev2_t *netdev, const struct iovec *vector, int count)
106106 at86rf2xx_tx_prepare (dev );
107107
108108 /* load packet data into FIFO */
109- for (int i = 0 ; i < count ; i ++ , ptr ++ ) {
109+ for (unsigned i = 0 ; i < count ; i ++ , ptr ++ ) {
110110 /* current packet data + FCS too long */
111111 if ((len + ptr -> iov_len + 2 ) > AT86RF2XX_MAX_PKT_LENGTH ) {
112112 DEBUG ("[at86rf2xx] error: packet too large (%u byte) to be send\n" ,
@@ -127,7 +127,7 @@ static int _send(netdev2_t *netdev, const struct iovec *vector, int count)
127127 return (int )len ;
128128}
129129
130- static int _recv (netdev2_t * netdev , char * buf , int len , void * info )
130+ static int _recv (netdev2_t * netdev , void * buf , size_t len , void * info )
131131{
132132 at86rf2xx_t * dev = (at86rf2xx_t * )netdev ;
133133 uint8_t phr ;
0 commit comments