Skip to content

Commit

Permalink
Fix compiler warnings in network.c (Thanks to Gareth Ansell for patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
shussain committed Dec 3, 2018
1 parent 021808a commit 69813b5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions network.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,12 +702,11 @@ void network_thread ()
sc->tx_bytes += sc->ppp_buf->len;
sc->tx_pkts++;

unsigned char* tosval,typeval;
tosval = *get_inner_tos_byte(sc->ppp_buf);
typeval = *get_inner_ppp_type(sc->ppp_buf);
unsigned char* tosval = get_inner_tos_byte(sc->ppp_buf);
unsigned char* typeval = get_inner_ppp_type(sc->ppp_buf);

int tosval_dec = (int)tosval;
int typeval_dec = (int)typeval;
int tosval_dec = (int)*tosval;
int typeval_dec = (int)*typeval;

if (typeval_dec != 33 )
tosval_dec=atoi(gconfig.controltos);
Expand Down

0 comments on commit 69813b5

Please sign in to comment.