Skip to content

Commit

Permalink
[SQUASH ME] ng_tapnet: some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Mar 8, 2015
1 parent c360146 commit 1484f5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ifneq (,$(filter sixlowpan,$(USEMODULE)))
endif

ifneq (,$(filter ng_tapnet,$(USEMODULE)))
USEMODULE += pktbuf
USEMODULE += ng_pktbuf
endif

ifneq (,$(filter aodvv2,$(USEMODULE)))
Expand Down
2 changes: 1 addition & 1 deletion cpu/native/ng_tapnet/ng_tapnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

#define _ISR_EVENT_RX (1U)

extern ng_tapnet_t ng_tapnet;
ng_tapnet_t ng_tapnet;

#ifdef __MACH__
pid_t _sigio_child_pid;
Expand Down
2 changes: 1 addition & 1 deletion cpu/native/startup.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv)
do { /* Don't wanna have this int forever reserved ;-) */
int res;

if ((res = ng_tapnet_init(ng_tapnet, argv[1])) < 0) {
if ((res = ng_tapnet_init(&ng_tapnet, argv[1], strlen(argv[1]))) < 0) {
errno = -res;
err(EXIT_FAILURE, "initialization ng_tapnet");
}
Expand Down

0 comments on commit 1484f5a

Please sign in to comment.