diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2007-10-21 17:03:18 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2007-10-21 17:03:18 +0000 |
| commit | da65d6fe836b1c916f324dc118147ebef2e66cc5 (patch) | |
| tree | 671044c373199adf7fe9a4d6be7ab8d5644d5a51 | |
| parent | a6ef2fb2da453a240daa7039cb4ef94a94a2add2 (diff) | |
Notes
| -rw-r--r-- | lib/libstand/tftp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c index 0cbfa520a4ff2..fd1b4ee7a9216 100644 --- a/lib/libstand/tftp.c +++ b/lib/libstand/tftp.c @@ -95,10 +95,10 @@ struct tftp_handle { u_char header[HEADER_SIZE]; struct tftphdr t; u_char space[RSPACE]; - } lastdata; + } __packed __aligned(4) lastdata; }; -static int tftperrors[8] = { +static const int tftperrors[8] = { 0, /* ??? */ ENOENT, EPERM, @@ -175,7 +175,7 @@ tftp_makereq(h) u_char header[HEADER_SIZE]; struct tftphdr t; u_char space[FNAME_SIZE + 6]; - } wbuf; + } __packed __aligned(4) wbuf; char *wtail; int l; ssize_t res; @@ -218,7 +218,7 @@ tftp_getnextblock(h) struct { u_char header[HEADER_SIZE]; struct tftphdr t; - } wbuf; + } __packed __aligned(4) wbuf; char *wtail; int res; struct tftphdr *t; |
