Reformat tftp_server.c using astylerc

This commit is contained in:
Dirk Ziegelmeier 2017-09-17 18:08:43 +02:00
parent 2ab73ad572
commit 6e7fe4520a

View File

@ -223,8 +223,7 @@ recv(void *arg, struct udp_pcb *upcb, struct pbuf *p, const ip_addr_t *addr, u16
switch (opcode) { switch (opcode) {
case PP_HTONS(TFTP_RRQ): /* fall through */ case PP_HTONS(TFTP_RRQ): /* fall through */
case PP_HTONS(TFTP_WRQ): case PP_HTONS(TFTP_WRQ): {
{
const char tftp_null = 0; const char tftp_null = 0;
char filename[TFTP_MAX_FILENAME_LEN + 1]; char filename[TFTP_MAX_FILENAME_LEN + 1];
char mode[TFTP_MAX_MODE_LEN + 1]; char mode[TFTP_MAX_MODE_LEN + 1];
@ -280,8 +279,7 @@ recv(void *arg, struct udp_pcb *upcb, struct pbuf *p, const ip_addr_t *addr, u16
break; break;
} }
case PP_HTONS(TFTP_DATA): case PP_HTONS(TFTP_DATA): {
{
int ret; int ret;
u16_t blknum; u16_t blknum;
@ -312,8 +310,7 @@ recv(void *arg, struct udp_pcb *upcb, struct pbuf *p, const ip_addr_t *addr, u16
break; break;
} }
case PP_HTONS(TFTP_ACK): case PP_HTONS(TFTP_ACK): {
{
u16_t blknum; u16_t blknum;
int lastpkt; int lastpkt;