comparison mcabber/libjabber/rate.c @ 414:ec86d759ed54

Trailing whitespace cleanup No real change.
author Mikael Berthe <mikael@lilotux.net>
date Tue, 30 Aug 2005 22:26:19 +0200
parents bf3d6e241714
children c3ae9251c197
comparison
equal deleted inserted replaced
413:f7e4b0424081 414:ec86d759ed54
53 /* make sure we didn't go over the time frame or get a null/new key */ 53 /* make sure we didn't go over the time frame or get a null/new key */
54 if((now - r->start) > r->maxt || key == NULL || j_strcmp(key,r->key) != 0) 54 if((now - r->start) > r->maxt || key == NULL || j_strcmp(key,r->key) != 0)
55 { /* start a new key */ 55 { /* start a new key */
56 free(r->key); 56 free(r->key);
57 if(key != NULL) 57 if(key != NULL)
58 /* We use strdup instead of pstrdup since r->key needs to be free'd before 58 /* We use strdup instead of pstrdup since r->key needs to be free'd before
59 and more often than the rest of the rlimit structure */ 59 and more often than the rest of the rlimit structure */
60 r->key = strdup(key); 60 r->key = strdup(key);
61 else 61 else
62 r->key = NULL; 62 r->key = NULL;
63 r->start = now; 63 r->start = now;
64 r->points = 0; 64 r->points = 0;
65 } 65 }