diff options
Diffstat (limited to 'arch/sandbox/os/tap.c')
-rw-r--r-- | arch/sandbox/os/tap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sandbox/os/tap.c b/arch/sandbox/os/tap.c index 0e29e8e8ad..3a29a4be64 100644 --- a/arch/sandbox/os/tap.c +++ b/arch/sandbox/os/tap.c @@ -28,7 +28,7 @@ #include <linux/if_tun.h> #include <string.h> -int tap_alloc(char *dev) +int tap_alloc(const char *dev) { struct ifreq ifr; int fd, err; @@ -55,7 +55,6 @@ int tap_alloc(char *dev) return err; } - strcpy(dev, ifr.ifr_name); return fd; } |