mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Fix warnings in tnftp about invalid constant conversions, e.g.:
contrib/tnftp/src/ftp.c:2067:11: error: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Werror,-Wconstant-conversion] buf[0] = IAC; ~ ^~~ /usr/include/arpa/telnet.h:39:13: note: expanded from macro 'IAC' #define IAC 255 /* interpret as command: */ ^~~ contrib/tnftp/src/ftp.c:2068:11: error: implicit conversion from 'int' to 'char' changes value from 244 to -12 [-Werror,-Wconstant-conversion] buf[1] = IP; ~ ^~ /usr/include/arpa/telnet.h:50:12: note: expanded from macro 'IP' #define IP 244 /* interrupt process--permanently */ ^~~ Use an unsigned char buffer instead. MFC after: 1 week
This commit is contained in:
parent
d7795033dd
commit
deda53cd9b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305085
|
@ -2050,7 +2050,7 @@ abort_squared(int dummy)
|
||||||
void
|
void
|
||||||
abort_remote(FILE *din)
|
abort_remote(FILE *din)
|
||||||
{
|
{
|
||||||
char buf[BUFSIZ];
|
unsigned char buf[BUFSIZ];
|
||||||
int nfnd;
|
int nfnd;
|
||||||
|
|
||||||
if (cout == NULL) {
|
if (cout == NULL) {
|
||||||
|
|
Loading…
Reference in a new issue