commSetTimeout looks odd.. maybe

2008-04-08 Thread Henrik Nordstrom
in commSetTimeout there is the following fragment which looks very odd to me if (callback != NULL) { typedef CommTimeoutCbParams Params; Params params = GetCommParamsParams(callback); params.fd = fd; F-timeoutHandler = callback; }

Re: commSetTimeout looks odd.. maybe

2008-04-08 Thread Alex Rousskov
On Tue, 2008-04-08 at 22:38 +0200, Henrik Nordstrom wrote: in commSetTimeout there is the following fragment which looks very odd to me if (callback != NULL) { typedef CommTimeoutCbParams Params; Params params = GetCommParamsParams(callback);

Re: commSetTimeout looks odd.. maybe

2008-04-08 Thread Henrik Nordstrom
tis 2008-04-08 klockan 18:04 -0600 skrev Alex Rousskov: Yes, it is setting the fd member of the call[back]. Yes, I realized that after sending the message. The syntax is very ugly, but I do not have a better proposal at the moment. I'll guess I get used to it eventually... Regards Henrik