Fix declarations to match prototype.