summaryrefslogtreecommitdiffstats
path: root/include/arpa
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-10-19 16:48:50 +0000
committerjoerg <joerg@FreeBSD.org>1997-10-19 16:48:50 +0000
commit54b3846b38e6e27bf73f77d2e6f05fbedd5363cf (patch)
tree9b456b049a162223680c38e210578fd18bffdb54 /include/arpa
parent76e2a878114e7b6390c0effc00d8798995e477d5 (diff)
downloadFreeBSD-src-54b3846b38e6e27bf73f77d2e6f05fbedd5363cf.zip
FreeBSD-src-54b3846b38e6e27bf73f77d2e6f05fbedd5363cf.tar.gz
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
Diffstat (limited to 'include/arpa')
-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 3d3dbf3..c88920d 100644
--- a/include/arpa/tftp.h
+++ b/include/arpa/tftp.h
@@ -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 */
OpenPOWER on IntegriCloud