Browse Source

Use u_int16_t, not short in struct tftphdr. From Marc Evans <marc@destek.net>.

OPENBSD_2_2
millert 27 years ago
parent
commit
281d3b7ded
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/include/arpa/tftp.h

+ 3
- 3
src/include/arpa/tftp.h View File

@ -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 */


Loading…
Cancel
Save