Skip to content

Commit 4ebbfa4

Browse files
committed
indentation cleanups
1 parent 8fe73a6 commit 4ebbfa4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

netboot.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ struct wiz_udp_header {
7777
uint16_t size;
7878
};
7979

80-
#define BOOTP_MAX_FILENAME 128
8180
struct bootp {
8281
uint8_t op;
8382
uint8_t htype;
@@ -92,7 +91,7 @@ struct bootp {
9291
uint8_t giaddr[4];
9392
uint8_t chaddr[16];
9493
uint8_t sname[64];
95-
char file[BOOTP_MAX_FILENAME];
94+
char file[128];
9695
uint8_t vend[64];
9796
};
9897

@@ -206,9 +205,9 @@ static union {
206205
} in_header __noinit;
207206

208207
static union {
209-
uint8_t a[sizeof(struct tftp)];
210-
struct bootp bootp;
211-
struct tftp tftp;
208+
uint8_t a[sizeof(struct tftp)];
209+
struct bootp bootp;
210+
struct tftp tftp;
212211
} in __noinit;
213212

214213
static union {
@@ -337,7 +336,7 @@ sock0_sendpacket(void)
337336

338337
/* S0_TX_WR += len */
339338
wiz_set_word(WIZ_Sn_TX_WR(0),
340-
wiz_get_word(WIZ_Sn_TX_WR(0)) + out_size);
339+
wiz_get_word(WIZ_Sn_TX_WR(0)) + out_size);
341340

342341
/* send! */
343342
wiz_set(WIZ_Sn_CR(0), WIZ_SEND);
@@ -380,7 +379,7 @@ sock0_readpacket(void)
380379

381380
/* S0_RX_RD += size */
382381
wiz_set_word(WIZ_Sn_RX_RD(0),
383-
wiz_get_word(WIZ_Sn_RX_RD(0)) + size);
382+
wiz_get_word(WIZ_Sn_RX_RD(0)) + size);
384383

385384
wiz_set(WIZ_Sn_CR(0), WIZ_RECV);
386385
}

0 commit comments

Comments
 (0)