mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
tapdev6.c: do not ignore return value of system()
This commit is contained in:
parent
2c91ab6fad
commit
0340567af8
@ -331,7 +331,10 @@ tapdev_init(void)
|
||||
*/
|
||||
/* freebsd */
|
||||
snprintf(buf, sizeof(buf), "ifconfig tap0 up");
|
||||
system(buf);
|
||||
if(system(buf) == -1) {
|
||||
perror("tapdev: system: ifconfig");
|
||||
return;
|
||||
}
|
||||
printf("%s\n", buf);
|
||||
|
||||
/* */
|
||||
|
Loading…
Reference in New Issue
Block a user