Skip to content

Commit

Permalink
indentation cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
esmil committed Oct 16, 2011
1 parent 8fe73a6 commit 4ebbfa4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions netboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ struct wiz_udp_header {
uint16_t size;
};

#define BOOTP_MAX_FILENAME 128
struct bootp {
uint8_t op;
uint8_t htype;
Expand All @@ -92,7 +91,7 @@ struct bootp {
uint8_t giaddr[4];
uint8_t chaddr[16];
uint8_t sname[64];
char file[BOOTP_MAX_FILENAME];
char file[128];
uint8_t vend[64];
};

Expand Down Expand Up @@ -206,9 +205,9 @@ static union {
} in_header __noinit;

static union {
uint8_t a[sizeof(struct tftp)];
struct bootp bootp;
struct tftp tftp;
uint8_t a[sizeof(struct tftp)];
struct bootp bootp;
struct tftp tftp;
} in __noinit;

static union {
Expand Down Expand Up @@ -337,7 +336,7 @@ sock0_sendpacket(void)

/* S0_TX_WR += len */
wiz_set_word(WIZ_Sn_TX_WR(0),
wiz_get_word(WIZ_Sn_TX_WR(0)) + out_size);
wiz_get_word(WIZ_Sn_TX_WR(0)) + out_size);

/* send! */
wiz_set(WIZ_Sn_CR(0), WIZ_SEND);
Expand Down Expand Up @@ -380,7 +379,7 @@ sock0_readpacket(void)

/* S0_RX_RD += size */
wiz_set_word(WIZ_Sn_RX_RD(0),
wiz_get_word(WIZ_Sn_RX_RD(0)) + size);
wiz_get_word(WIZ_Sn_RX_RD(0)) + size);

wiz_set(WIZ_Sn_CR(0), WIZ_RECV);
}
Expand Down

0 comments on commit 4ebbfa4

Please sign in to comment.