mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +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 */
|
/* freebsd */
|
||||||
snprintf(buf, sizeof(buf), "ifconfig tap0 up");
|
snprintf(buf, sizeof(buf), "ifconfig tap0 up");
|
||||||
system(buf);
|
if(system(buf) == -1) {
|
||||||
|
perror("tapdev: system: ifconfig");
|
||||||
|
return;
|
||||||
|
}
|
||||||
printf("%s\n", buf);
|
printf("%s\n", buf);
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
Loading…
Reference in New Issue
Block a user