static HashValue *htv_prep(int len) {
HashValue *hd;
- hd= TALLOC((hd->data - (Byte*)hd) + len);
+ hd= TALLOC(offsetof(typeof(*hd), data) + len);
hd->len= len;
return hd;
}
be replaced with similar functionality elsewhere, but for now
this change fixes the FTBFS on Debian hurd-* and kfreebsd-*.
* Update build-dependencies to permit tcl8.6. Closes:#818475.
+ * Replace ad-hocery with use of offsetof/typeof. Closes:#812718.
-- Ian Jackson <ijackson@chiark.greenend.org.uk> Tue, 24 Jan 2017 13:14:06 +0000