From: Daniel Stenberg Date: Fri, 16 Sep 2005 10:50:43 +0000 (+0000) Subject: In the Solaris 7 header files for tftp, the th_stuff struct member is an X-Git-Tag: upstream/7.37.1~10896 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=973a18cf0357ccf0db64590fc040cd45b4f28321;p=platform%2Fupstream%2Fcurl.git In the Solaris 7 header files for tftp, the th_stuff struct member is an unsigned short. Trying a typecast here to fix. --- diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 50c8e72..f55e638 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -569,7 +569,8 @@ static int tftp(struct testcase *test, struct tftphdr *tp, int size) /* store input protocol */ fprintf(test->server, "opcode: %x\n", tp->th_opcode); - filename = cp = tp->th_stuff; + cp = (char *)&tp->th_stuff; + filename = cp; again: while (cp < buf + size) { if (*cp == '\0')