소스 검색

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;