nbd/nbd-2.9.5-warn.diff

16 lines
467 B
Diff

Index: nbd-2.9.8/nbd-server.c
===================================================================
--- nbd-2.9.8.orig/nbd-server.c
+++ nbd-2.9.8/nbd-server.c
@@ -1334,9 +1334,9 @@ void serveconnection(CLIENT *client) {
**/
void set_peername(int net, CLIENT *client) {
struct sockaddr_in addrin;
struct sockaddr_in netaddr;
- size_t addrinlen = sizeof( addrin );
+ socklen_t addrinlen = sizeof( addrin );
char *peername;
char *netname;
char *tmp;
int i;