Re: [patch] poll.2: timeout_ts is a pointer, so use -> not . for member access

2015-12-23 Thread Michael Kerrisk (man-pages)
Hello Richard, On 23 December 2015 at 20:30, richardvo...@gmail.com wrote: > From the context, it is apparent that in the code explaining ppoll in > terms of poll, timeout_ts must be a pointer. > > Usage #1: ready = ppoll(&fds, nfds, timeout_ts, &sigmask); > > Usage #2:(timeout_ts == NULL)

[patch] poll.2: timeout_ts is a pointer, so use -> not . for member access

2015-12-23 Thread richardvo...@gmail.com
>From the context, it is apparent that in the code explaining ppoll in terms of poll, timeout_ts must be a pointer. Usage #1: ready = ppoll(&fds, nfds, timeout_ts, &sigmask); Usage #2:(timeout_ts == NULL) Thus member access in (timeout_ts.tv_sec * 1000 + timeout_ts.tv_nsec / 100) is an