ossec/ossec-hids — pull request #299 by awiddersheim (2014-09-14 14:14:59+00:00)
Title: Fix common mispelling and code comments

This is kind of related to #60. Just trying to cleanup the source a bit and the comments to get some consistency. Mainly removed white space and fix misspellings and get rid of pointless comments.

I'm not the best at English nor do I want to be a stickler for proper grammar use but I did find that the word `currently` was misspelled/misused quite often both in comments and in variable names. This pull requests should hopefully correct all of those. Probably was a language barrier problem with the original author.

A good example of comments I wanted to fix are ones like the following that could be found above functions and prototypes:

```
/* StoreCount(keystore *keys, int id, int global, int local)
* Store the global and local count of events.
*/
static void StoreCounter(const keystore *keys, int id, unsigned int global, unsigned int local)
{
...
```

The comment has the `StoreCount()` declaration in the comment when the actual declaration is a line below. To make this even worse is that someone changed the function parameters and never updated the comment making it even more pointless.

There are also a lot of times where the comment says `/* Sleep for 60 seconds */ and then the next line is actually `sleep(120)`.

Hopefully, this gives you an idea of what I want to get rid of.