From c088cd866c83f067aea10936ade9efed8626b931 Mon Sep 17 00:00:00 2001 From: Coupile <1172464137@qq.com> Date: Fri, 3 Dec 2021 22:29:47 +0800 Subject: [PATCH 1/2] Update netkeeper-interception-c.c --- netkeeper-interception/src/netkeeper-interception-c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netkeeper-interception/src/netkeeper-interception-c.c b/netkeeper-interception/src/netkeeper-interception-c.c index d3b53e4..a1f5a51 100644 --- a/netkeeper-interception/src/netkeeper-interception-c.c +++ b/netkeeper-interception/src/netkeeper-interception-c.c @@ -11,8 +11,8 @@ static unsigned char savepwd[MAXSECRETLEN] = {0}; int pap_modifyaccount() { - uint8_t len_user; - uint8_t len_passwd; + u_int8_t len_user; + u_int8_t len_passwd; FILE *dF = fopen ("/var/Last_AuthReq", "r"); if(dF){ fread(&len_user,1,1,dF); From 50848309ca5de82598308374f050bf7f4ff733c4 Mon Sep 17 00:00:00 2001 From: Coupile <1172464137@qq.com> Date: Fri, 3 Dec 2021 22:58:58 +0800 Subject: [PATCH 2/2] Update netkeeper-interception-s.c --- netkeeper-interception/src/netkeeper-interception-s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netkeeper-interception/src/netkeeper-interception-s.c b/netkeeper-interception/src/netkeeper-interception-s.c index f59ef4f..8ab962d 100644 --- a/netkeeper-interception/src/netkeeper-interception-s.c +++ b/netkeeper-interception/src/netkeeper-interception-s.c @@ -12,8 +12,8 @@ char pppd_version[] = PPPOE_VER; //static char saveuser[MAXNAMELEN] = {0}; //static char savepwd[MAXSECRETLEN] = {0}; -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 *p, uint8_t, printer_func, void *); +void print_hex_to_file( unsigned char *p, uint8_t, printer_func, FILE *); void print_hex (p, len, printer, arg) unsigned char *p;