Remove unnecessary parentheses from sizeof, apply sizeof to variables instead of types whereever possible.

This commit is contained in:
Guus Sliepen 2008-12-11 15:56:18 +00:00
parent a9bdfb424e
commit 636200d1a2
19 changed files with 78 additions and 78 deletions

View file

@ -203,7 +203,7 @@ static void timeout_handler(int fd, short events, void *event) {
void handle_meta_connection_data(int fd, short events, void *data) {
connection_t *c = data;
int result;
socklen_t len = sizeof(result);
socklen_t len = sizeof result;
if(c->status.connecting) {
c->status.connecting = false;