mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Declare the various 2-byte values in TFTP as being `unsigned short'.
RFC 1350 isn't very explicit about this, but the use of signed integers doesn't seem to make sense. Should be in 2.2.5, but is probably too late to be verified completely. PR: bin/4502 Submitted by: Dirk Nehrling <nerle@pdv.de> via Lars Koeller
This commit is contained in:
parent
c38876e369
commit
d88dbcf043
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30583
|
@ -51,10 +51,10 @@
|
|||
#define ERROR 05 /* error code */
|
||||
|
||||
struct tftphdr {
|
||||
short th_opcode; /* packet type */
|
||||
unsigned short th_opcode; /* packet type */
|
||||
union {
|
||||
short tu_block; /* block # */
|
||||
short tu_code; /* error code */
|
||||
unsigned short tu_block; /* block # */
|
||||
unsigned short tu_code; /* error code */
|
||||
char tu_stuff[1]; /* request packet stuff */
|
||||
} th_u;
|
||||
char th_data[1]; /* data or error string */
|
||||
|
|
Loading…
Reference in a new issue