On Fri, Nov 21, 2003 at 04:48:33PM +0100, Carin Andersson (HF/EAB)
wrote:> Hi,
> I have a question about the code for version openssh 3.7.1p1. In the file
> ssh.cc you address ssh_session2_setup in some way:
> channel_register_confirm(c->self, ssh_session2_setup);
>
> Do you address the function: static void ssh_session2_setup(int id, void
> * args) in the same file or is it something else you address?
> If it is that function please tell me why the ssh_session2_setup function
> don't have any parameters defined.
Without looking or knowing for sure, I'm guessing that the argument to that
function is a callback, and when you pass pointers to functions, they never
contain arguments. Since no parantheses are specified after the function
name, it's not a call.
Could be all out of the blue, though.
//Peter