Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3 code in consistent c style please!

closed
nobody
None
5
2005-06-27
2005-05-26
Anonymous
No

Hi at all,
just look at client.c:920

variable declaration have to be in the *head* of a function block,
declaring them at any other place is a *c++* feature, not c!!!!!!!

If you don't know how you have to fix it fast:

before...
{
int blah = 0;
blah = callSomeCode();

char* bleh = (char*)malloc(howmuchwewant);
...
}

after...

{
int blah = 0;
blah = callSomeCode();
{
char* bleh = ...
}
}

the curled brackets are your friends...
regards

Discussion

    • status: open --> closed
     
  • Logged In: YES
    user_id=136432

    Thank you for finding this.