hi.
yudeMacBook-Air:tsproxy brite$ make
cc -g -Wall -Werror -o transockproxy transockproxy.c normal.c -lpthread
transockproxy.c:229:57: error: format specifies type 'unsigned short' but the
argument has type 'int' [-Werror,-Wformat]
...printf("Default server: %s://%s:%hu\n", proto, host, port);
~~~ ^~~~
%d
transockproxy.c:272:77: error: format specifies type 'unsigned short' but the
argument has type 'int' [-Werror,-Wformat]
...pattern %s to %s://%s:%hu\n", map->pattern, proto, host, port);
~~~ ^~~~
%d
transockproxy.c:460:48: error: comparison of constant 255 with expression of
type 'char' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
if (rc != 2 || buffer[0] != 0x05 || buffer[1] == 0xFF) {
~~~~~~~~~ ^ ~~~~
3 errors generated.
make: *** [transockproxy] Error 1
yudeMacBook-Air:tsproxy brite$
how to fix it?
thank you
hi.
yudeMacBook-Air:tsproxy brite$ make
cc -g -Wall -Werror -o transockproxy transockproxy.c normal.c -lpthread
transockproxy.c:229:57: error: format specifies type 'unsigned short' but the
argument has type 'int' [-Werror,-Wformat]
...printf("Default server: %s://%s:%hu\n", proto, host, port);
~~~ ^~~~
%d
transockproxy.c:272:77: error: format specifies type 'unsigned short' but the
argument has type 'int' [-Werror,-Wformat]
...pattern %s to %s://%s:%hu\n", map->pattern, proto, host, port);
~~~ ^~~~
%d
transockproxy.c:460:48: error: comparison of constant 255 with expression of
type 'char' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
if (rc != 2 || buffer[0] != 0x05 || buffer[1] == 0xFF) {
~~~~~~~~~ ^ ~~~~
3 errors generated.
make: *** [transockproxy] Error 1
yudeMacBook-Air:tsproxy brite$
how to fix it?
thank you