summaryrefslogtreecommitdiff
path: root/include/arpa/tftp.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-06-29 07:12:45 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-06-29 07:12:45 +0000
commitc9b17bfd2f38e0b9f89fc7666da1042f70dfddf3 (patch)
treead8a6d6c9a2e1d97664def87f8f6548227f5b22b /include/arpa/tftp.h
parentb1c0281a5e9f2543d5373cef3c04d36985662a87 (diff)
Use u_int16_t, not short in struct tftphdr. From Marc Evans <marc@destek.net>.
Diffstat (limited to 'include/arpa/tftp.h')
-rw-r--r--include/arpa/tftp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/arpa/tftp.h b/include/arpa/tftp.h
index 9234c6c69ac..5e9cacc9a74 100644
--- a/include/arpa/tftp.h
+++ b/include/arpa/tftp.h
@@ -53,10 +53,10 @@
#define ERROR 05 /* error code */
struct tftphdr {
- short th_opcode; /* packet type */
+ u_int16_t th_opcode; /* packet type */
union {
- short tu_block; /* block # */
- short tu_code; /* error code */
+ u_int16_t tu_block; /* block # */
+ u_int16_t tu_code; /* error code */
char tu_stuff[1]; /* request packet stuff */
} th_u;
char th_data[1]; /* data or error string */