vpn-ws
vpn-ws copied to clipboard
SSL-specific build error
trafficstars
Can't build with:
cc -Wall -Werror -g -o vpn-ws src/main.o src/error.o src/tuntap.o src/memory.o src/bits.o src/base64.o src/exec.o src/websocket.o src/utils.o src/socket.o src/event.o src/io.o src/uwsgi.o src/sha1.o src/macmap.o
src/ssl.c: In function '_vpn_ws_ssl_wait_read':
src/ssl.c:4:12: error: type of 'fd' defaults to 'int' [-Werror=implicit-int]
static int _vpn_ws_ssl_wait_read(fd) {
^
src/ssl.c: In function '_vpn_ws_ssl_wait_write':
src/ssl.c:15:12: error: type of 'fd' defaults to 'int' [-Werror=implicit-int]
static int _vpn_ws_ssl_wait_write(fd) {
^
cc1: all warnings being treated as errors
make: *** [src/ssl.o] Error 1
Can be fixed by adding types - http://git.altlinux.org/people/enp/packages/?p=vpn-ws.git;a=blobdiff;f=src/ssl.c;h=4f0405cec2c210bd6d4253a66e6ffc3a209d205b;hp=751d101a7daa76943708bebd87f8be12b0ac642c;hb=44bf8b772379f35a1bed4a150081557e3ef5359c;hpb=3d15958bfeb668ae860376f650083ca37146e807