summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-06-29 07:12:44 +0000
committermillert <millert@openbsd.org>1997-06-29 07:12:44 +0000
commitd698e0d326a90d39ab8c0ca8199ca7d347298847 (patch)
tree1d6ea65ac8c7f26a227668550802c658853ae952
parentindent (diff)
downloadwireguard-openbsd-d698e0d326a90d39ab8c0ca8199ca7d347298847.tar.xz
wireguard-openbsd-d698e0d326a90d39ab8c0ca8199ca7d347298847.zip
Use u_int16_t, not short in struct tftphdr. From Marc Evans <marc@destek.net>.
-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 */