summaryrefslogtreecommitdiffstats
path: root/src/net/udp/tftp.c
diff options
context:
space:
mode:
authorMichael Brown2007-09-06 14:37:47 +0200
committerMichael Brown2007-09-06 14:37:47 +0200
commit00d93c6dd90b00de6e354d22ddc188d08fabf0b9 (patch)
treee9a829430767468dce479e25844897df75fc3aa4 /src/net/udp/tftp.c
parentTFTP default blocksize fix from Vampyre (diff)
downloadipxe-00d93c6dd90b00de6e354d22ddc188d08fabf0b9.tar.gz
ipxe-00d93c6dd90b00de6e354d22ddc188d08fabf0b9.tar.xz
ipxe-00d93c6dd90b00de6e354d22ddc188d08fabf0b9.zip
Minor style fix: structure fields are generally initialised in the
order in which they occur.
Diffstat (limited to 'src/net/udp/tftp.c')
-rw-r--r--src/net/udp/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/udp/tftp.c b/src/net/udp/tftp.c
index 6c1c51b0..74c8c0a5 100644
--- a/src/net/udp/tftp.c
+++ b/src/net/udp/tftp.c
@@ -645,9 +645,9 @@ int tftp_open ( struct xfer_interface *xfer, struct uri *uri ) {
xfer_init ( &tftp->xfer, &tftp_xfer_operations, &tftp->refcnt );
tftp->uri = uri_get ( uri );
xfer_init ( &tftp->socket, &tftp_socket_operations, &tftp->refcnt );
+ tftp->blksize = TFTP_DEFAULT_BLKSIZE;
tftp->state = -1;
tftp->timer.expired = tftp_timer_expired;
- tftp->blksize = TFTP_DEFAULT_BLKSIZE;
/* Open socket */
memset ( &server, 0, sizeof ( server ) );