freebsd-dev/contrib/telnet/telnet
Dimitry Andric 866616de6e Fix warnings in telnet about invalid constant conversions, e.g.:
contrib/telnet/telnet/commands.c:2914:13: error: implicit conversion
from 'int' to 'char' changes value from 137 to -119
[-Werror,-Wconstant-conversion]
                *lsrp++ = IPOPT_SSRR;
                        ~ ^~~~~~~~~~
/usr/include/netinet/ip.h:152:21: note: expanded from macro 'IPOPT_SSRR'
#define IPOPT_SSRR              137             /* strict source route */
                                ^~~
contrib/telnet/telnet/commands.c:2916:13: error: implicit conversion
from 'int' to 'char' changes value from 131 to -125
[-Werror,-Wconstant-conversion]
                *lsrp++ = IPOPT_LSRR;
                        ~ ^~~~~~~~~~
/usr/include/netinet/ip.h:148:21: note: expanded from macro 'IPOPT_LSRR'
#define IPOPT_LSRR              131             /* loose source route */
                                ^~~

Use unsigned char buffers instead.

MFC after:	1 week
2016-08-30 20:27:22 +00:00
..
authenc.c
baud.h Add baud rate support to telnet(1) 2014-11-11 04:06:05 +00:00
commands.c Fix warnings in telnet about invalid constant conversions, e.g.: 2016-08-30 20:27:22 +00:00
defines.h
externs.h Add baud rate support to telnet(1) 2014-11-11 04:06:05 +00:00
fdset.h
general.h
main.c Add baud rate support to telnet(1) 2014-11-11 04:06:05 +00:00
network.c
ring.c
ring.h
sys_bsd.c Add baud rate support to telnet(1) 2014-11-11 04:06:05 +00:00
telnet.1 Add baud rate support to telnet(1) 2014-11-11 04:06:05 +00:00
telnet.c Add baud rate support to telnet(1) 2014-11-11 04:06:05 +00:00
terminal.c
types.h Add baud rate support to telnet(1) 2014-11-11 04:06:05 +00:00
utilities.c