Add more missing break statements

This commit is contained in:
Marcel Holtmann 2010-04-02 13:33:35 -07:00
parent 0766a67832
commit 76200165bb
3 changed files with 6 additions and 3 deletions

View File

@ -437,6 +437,7 @@ void ppp_generate_event(GAtPPP *ppp, enum ppp_event event)
ppp_transition_phase(ppp, PPP_DEAD);
else if (ppp->phase == PPP_AUTHENTICATION)
ppp_transition_phase(ppp, PPP_TERMINATION);
break;
}
}

View File

@ -189,6 +189,7 @@ static struct chap_data *chap_new(struct auth_data *auth, guint8 method)
break;
default:
g_print("Unknown method\n");
break;
}
/* register packet handler for CHAP protocol */
@ -208,6 +209,7 @@ void auth_set_proto(struct auth_data *data, guint16 proto, guint8 method)
break;
default:
g_print("Unknown auth protocol 0x%x\n", proto);
break;
}
}

View File

@ -108,10 +108,9 @@ static guint lcp_option_scan(struct ppp_option *option, gpointer user)
case PFC:
case ACFC:
return OPTION_ACCEPT;
break;
default:
return OPTION_REJECT;
}
return OPTION_REJECT;
}
/*
@ -150,6 +149,7 @@ static void lcp_option_process(gpointer data, gpointer user)
break;
default:
g_printerr("unhandled option %d\n", option->type);
break;
}
}