Having some TStime problems

These are old archives. They are kept for historic purposes only.
Post Reply
farklem
Posts: 2
Joined: Thu Feb 23, 2006 6:09 pm

Having some TStime problems

Post by farklem »

This has been solved, please look at my reply below :) Special thanks to WolfSage and w00t for helping me resolve it.

I am working on an extended bantype module. So far everything works just fine except that I can't call TStime() from my extban callback function.
When I try to compile with TStime in the function I get this error: "called object is not a function".

Here is the callback function:

Code: Select all

char *extban_modet_conv_param(char *para_in)
{
     TS test = TStime();

     return NULL;
}
Here is some of the code that calls the function when the extban is set (located in the module init function):

Code: Select all

ExtbanInfo req;
memset(&req, 0, sizeof(ExtbanInfo));
req.flag = 't';
req.conv_param = extban_modet_conv_param;
I know that the problem has something to do with the access to TStime() that 'req.conv_param' gives the function. I just don't know how to resolve it.


Thanks,
farklem
Last edited by farklem on Thu Feb 23, 2006 7:04 pm, edited 1 time in total.
farklem
Posts: 2
Joined: Thu Feb 23, 2006 6:09 pm

someone shoot me!

Post by farklem »

Well, I made a stupid error and had a char* variable named time in my function that was causing the problem. I didn't think it was causing the problem because the compiler never complained about it (im surprised it even let me use the name time but w/e). after re-naming my variable, TStime() is working just fine.
Post Reply