Control: tags -1 + patch
ptl_ips/ips_proto_dump.c:142:15: error: static declaration of ‘strlcat’ follows non-static declaration
The comment says "linux doesn't have strlcat"; but strlcat() was added
to glibc v2.38, hence the error. Removing the function from
ips_proto_dump.c made the package build again. I didn't perform any
further testing.
--
Jakub Wilk
--- infinipath-psm-3.3+20.604758e7.orig/ptl_ips/ips_proto_dump.c
+++ infinipath-psm-3.3+20.604758e7/ptl_ips/ips_proto_dump.c
@@ -136,6 +136,7 @@ void ips_proto_show_header(struct ips_me
printf("mqhdr %x\n", p_hdr->mqhdr);
}
+#if 0
// linux doesn't have strlcat; this is a stripped down implementation
// not super-efficient, but we use it rarely, and only for short strings
// not fully standards conforming!
@@ -152,6 +153,7 @@ static size_t strlcat(char *d, const cha
d[dlen+slen] = '\0';
return dlen+slen+1; // standard says to return full length, not actual
}
+#endif
// decode RHF errors; only used one place now, may want more later
void ips_proto_get_rhf_errstring(uint32_t err, char *msg, size_t len)
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)