Skip to content

Commit

Permalink
[SQUASH ME] ng_netif_hdr: fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Mar 8, 2015
1 parent 6b72ff0 commit 87bb904
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sys/include/net/ng_netif/hdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ inline void ng_netif_hdr_set_dst_addr(ng_netif_hdr_t *hdr, uint8_t *addr,
* @return NULL on error.
*/
static inline ng_pktsnip_t *ng_netif_hdr_build(ng_pktsnip_t *payload,
uint8_t *src, uint8_t src_len, uint8_t dest, uint8_t dest_len)
uint8_t *src, uint8_t src_len, uint8_t *dest, uint8_t dest_len)
{
ng_pktsnip_t *pkt = ng_pktbuf_add(NULL, NULL,
sizeof(ng_netif_hdr_t) + src_len + dest_len,
Expand All @@ -168,11 +168,11 @@ static inline ng_pktsnip_t *ng_netif_hdr_build(ng_pktsnip_t *payload,
ng_netif_hdr_init((ng_netif_hdr_t *)pkt->data, src_len, dest_len);

if (src != NULL && src_len > 0) {
ng_netif_hdr_get_src_addr((ng_netif_hdr_t *)pkt->data, src, src_len);
ng_netif_hdr_set_src_addr((ng_netif_hdr_t *)pkt->data, src, src_len);
}

if (dest != NULL && dest_len > 0) {
ng_netif_hdr_get_dest_addr((ng_netif_hdr_t *)pkt->data, dest, dest_len);
ng_netif_hdr_set_dst_addr((ng_netif_hdr_t *)pkt->data, dest, dest_len);
}

payload->next = pkt;
Expand Down

0 comments on commit 87bb904

Please sign in to comment.