Skip to content

有点语法问题要改,不然用最新版的源码编译会报错 #25

@yuhanjin

Description

@yuhanjin

用lean最新版源码编译时,编译器报错

根据报错提示,把
https://github.com/CCnut/feed-netkeeper/blob/LUCI-LUA-UCITRACK/netkeeper-interception/src/netkeeper-interception-c.c
14行和15行的
uint8_t
改成
u_int8_t


https://github.com/CCnut/feed-netkeeper/blob/LUCI-LUA-UCITRACK/netkeeper-interception/src/netkeeper-interception-s.c
15,16行的

void print_hex __P(( unsigned char *, uint8_t,  printer_func, void *));
void print_hex_to_file __P(( unsigned char *, uint8_t,  printer_func, FILE *));

改成

void print_hex(unsigned char *, uint8_t,  printer_func, void *);
void print_hex_to_file(unsigned char *, uint8_t,  printer_func, FILE *);

即可通过编译

急着要用的话可以用我的fork
https://github.com/yuhanjin/feed-netkeeper

我感觉是gcc对于c语言的语法标准变严了,有些不太标准的语法在老版本的gcc上可以编译通过,在新版gcc上就直接报错了

由于只编译通过,没测试过实际能不能用,就不并入原代码了,实际能用的话再改把

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions