Can you recheck the indentation please. Here and some other places things are jumbled up. Since the code should follow the linux style you can use the `indent` tool if your editor cannot fix it (http://ruckuus.wordpress.com/2010/03/15/lindent-amazing-script-for-lazy-c-coder/).