Merge branch '26-fix-function-definition' into 'master'

OK removed the cast and fixed the function def in the test

This should definitely clear the warning.

Closes #26

See merge request !21
This commit is contained in:
James Carter
2016-10-06 15:59:57 +01:00

View File

@@ -22,7 +22,7 @@
int fd_read_request( int, struct nbd_request_raw *);
int fd_write_reply( int, char *, int );
int fd_write_reply( int, uint64_t, int );
int marker;
@@ -57,7 +57,7 @@ void * responder( void *respond_uncast )
fd_write_reply( sock_fd, wrong_handle, 0 );
}
else {
fd_write_reply( sock_fd, (char *) resp->received.handle.w, 0 );
fd_write_reply( sock_fd, resp->received.handle.w, 0 );
}
write( sock_fd, "12345678", 8 );
}