|
From: Tom T. <tom...@et...> - 2016-05-05 18:29:38
|
Hey Michael, On Thu, May 5, 2016 at 2:49 AM, Michael Iedema <mic...@ra...> wrote: > Could we not implement this in another way? Most of the altered calls in transceiver pass in sizeof(buf) for length. I suggest we keep the existing signature and default it to calculate a logical length in this way. Then we add the signature you’ve provided to improve the length specification when needed. In general, buffer pointers should not be passed without a size specifier. Breaking the interface was explicit to that point. Is there a reason we can't fix the dependent read() calls? If we must, we can keep, but deprecate, the pointer only interface for compatibility as in this patch; in the long run, use of that interface really should go away. -TT |