comparison svr-x11fwd.c @ 1095:877256d1b3fb

Expect len to be a type of socklen_t [-Werror=pointer-sign]
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 15:58:33 +0200
parents c45d65392c1a
children aaf576b27a10
comparison
equal deleted inserted replaced
1094:c45d65392c1a 1095:877256d1b3fb
105 /* returns DROPBEAR_FAILURE or DROPBEAR_SUCCESS */ 105 /* returns DROPBEAR_FAILURE or DROPBEAR_SUCCESS */
106 static void x11accept(struct Listener* listener, int sock) { 106 static void x11accept(struct Listener* listener, int sock) {
107 107
108 int fd; 108 int fd;
109 struct sockaddr_in addr; 109 struct sockaddr_in addr;
110 int len; 110 socklen_t len;
111 int ret; 111 int ret;
112 struct ChanSess * chansess = (struct ChanSess *)(listener->typedata); 112 struct ChanSess * chansess = (struct ChanSess *)(listener->typedata);
113 113
114 len = sizeof(addr); 114 len = sizeof(addr);
115 115