Hi,
I totally agree with nvoigt.. Thats its more a sort of personal about the styling of the code..
What you need to do is have a standard notation as to how you would identify a variable it a const. or not how would you declear a gobal variable. eg. #defined variables are usally in Caps.
One more thing is that you need to give in more comments. Some times (personals experiance) when you right a piece of code you might think that its very trival but when you look at it after couple of times you really find it difficiult to understand.
check out the book.. " The Practice of Programming " by, Brian W Kernighan and Rob Pike. it might help.. :-)
happy coding..