mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-19 19:40:56 +00:00
misc nit fixes for nit compilers
This commit is contained in:
1 parent
4ff5b602cb
commit
14835cd32e
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -3624,8 +3624,8 @@ bool mg_l2_eth_rx(struct mg_tcpip_if *ifp, enum mg_l2proto *proto,
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct mg_l2addr *mg_l2_eth_getaddr(struct mg_tcpip_if *ifp, uint8_t *frame) {
|
struct mg_l2addr *mg_l2_eth_getaddr(struct mg_tcpip_if *ifp, uint8_t *frame) {
|
||||||
(void) ifp; // address field is before a possible 802.1Q tag
|
|
||||||
struct eth *eth = (struct eth *) frame;
|
struct eth *eth = (struct eth *) frame;
|
||||||
|
(void) ifp; // address field is before a possible 802.1Q tag
|
||||||
return (struct mg_l2addr *) ð->src;
|
return (struct mg_l2addr *) ð->src;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -141,8 +141,8 @@ bool mg_l2_eth_rx(struct mg_tcpip_if *ifp, enum mg_l2proto *proto,
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct mg_l2addr *mg_l2_eth_getaddr(struct mg_tcpip_if *ifp, uint8_t *frame) {
|
struct mg_l2addr *mg_l2_eth_getaddr(struct mg_tcpip_if *ifp, uint8_t *frame) {
|
||||||
(void) ifp; // address field is before a possible 802.1Q tag
|
|
||||||
struct eth *eth = (struct eth *) frame;
|
struct eth *eth = (struct eth *) frame;
|
||||||
|
(void) ifp; // address field is before a possible 802.1Q tag
|
||||||
return (struct mg_l2addr *) ð->src;
|
return (struct mg_l2addr *) ð->src;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ static const char *script[] = {
|
|||||||
//SoftwareSerial ModemSerial(RX_PIN, TX_PIN);
|
//SoftwareSerial ModemSerial(RX_PIN, TX_PIN);
|
||||||
|
|
||||||
struct mg_connection *mqtt_connection;
|
struct mg_connection *mqtt_connection;
|
||||||
struct mg_tcpip_driver_ppp_data driver_data;
|
struct mg_tcpip_driver_atcmd_data driver_data;
|
||||||
struct mg_mgr mgr; // Mongoose event manager
|
struct mg_mgr mgr; // Mongoose event manager
|
||||||
struct mg_tcpip_if mif = {.mac = {2, 0, 1, 2, 3, 5}}; // Network interface
|
struct mg_tcpip_if mif = {.mac = {2, 0, 1, 2, 3, 5}}; // Network interface
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user