PPP, CORE, using u8_t on ioctl command instead of int

We don't need an int here, all commands are between 0 and 255.
This commit is contained in:
Sylvain Rochet 2015-02-21 21:37:08 +01:00
parent bfe0c3a8e0
commit dc2e700057
4 changed files with 5 additions and 5 deletions

View File

@ -350,7 +350,7 @@ pppapi_do_ppp_ioctl(struct pppapi_msg_msg *msg)
* tcpip_thread context.
*/
err_t
pppapi_ioctl(ppp_pcb *pcb, int cmd, void *arg)
pppapi_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg)
{
struct pppapi_msg msg;
msg.function = pppapi_do_ppp_ioctl;

View File

@ -93,7 +93,7 @@ struct pppapi_msg_msg {
u16_t holdoff;
} open;
struct {
int cmd;
u8_t cmd;
void *arg;
} ioctl;
#if LWIP_NETIF_STATUS_CALLBACK
@ -137,7 +137,7 @@ err_t pppapi_open(ppp_pcb *pcb, u16_t holdoff);
err_t pppapi_close(ppp_pcb *pcb);
void pppapi_sighup(ppp_pcb *pcb);
err_t pppapi_free(ppp_pcb *pcb);
err_t pppapi_ioctl(ppp_pcb *pcb, int cmd, void *arg);
err_t pppapi_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg);
#if LWIP_NETIF_STATUS_CALLBACK
void pppapi_set_netif_statuscallback(ppp_pcb *pcb, netif_status_callback_fn status_callback);
#endif /* LWIP_NETIF_STATUS_CALLBACK */

View File

@ -497,7 +497,7 @@ err_t ppp_free(ppp_pcb *pcb);
* Get and set parameters for the given connection.
* Return 0 on success, an error code on failure.
*/
err_t ppp_ioctl(ppp_pcb *pcb, int cmd, void *arg);
err_t ppp_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg);
/* Get the PPP netif interface */
#define ppp_netif(ppp) (ppp->netif)

View File

@ -341,7 +341,7 @@ err_t ppp_free(ppp_pcb *pcb) {
/* Get and set parameters for the given connection.
* Return 0 on success, an error code on failure. */
err_t
ppp_ioctl(ppp_pcb *pcb, int cmd, void *arg)
ppp_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg)
{
if (pcb == NULL) {
return ERR_VAL;