浏览代码

BTap: make a string in options a non-const char pointer so we can allocate and free it

ambrop7 13 年之前
父节点
当前提交
62ad4c0763
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tuntap/BTap.h

+ 1 - 1
tuntap/BTap.h

@@ -120,7 +120,7 @@ struct BTap_init_data {
     enum BTap_dev_type dev_type;
     enum BTap_init_type init_type;
     union {
-        const char *string;
+        char *string;
         struct {
             int fd;
             int mtu;