mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
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
|
||
|---|---|---|
| .. | ||
| authenc.c | ||
| baud.h | ||
| commands.c | ||
| defines.h | ||
| externs.h | ||
| fdset.h | ||
| general.h | ||
| main.c | ||
| network.c | ||
| ring.c | ||
| ring.h | ||
| sys_bsd.c | ||
| telnet.1 | ||
| telnet.c | ||
| terminal.c | ||
| types.h | ||
| utilities.c | ||