PPP, adding const pragma to FSM callbacks, saving about 350 bytes in .data segment

This commit is contained in:
Sylvain Rochet
2012-10-13 18:54:25 +02:00
parent 9e4aa79278
commit e5a554f0b5
7 changed files with 7 additions and 6 deletions

View File

@@ -73,7 +73,7 @@
*/
typedef struct fsm {
ppp_pcb *pcb; /* PPP Interface */
struct fsm_callbacks *callbacks; /* Callback routines */
const struct fsm_callbacks *callbacks; /* Callback routines */
char *term_reason; /* Reason for closing protocol */
u8_t seen_ack; /* Have received valid Ack/Nak/Rej to Req */
/* -- This is our only flag, we might use u_int :1 if we have more flags */