Mercurial > pidgin
comparison src/log.c @ 13077:64ca89ffc639
[gaim-migrate @ 15439]
This should make comparing log size structs a little faster.
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Tue, 31 Jan 2006 03:43:04 +0000 |
| parents | f3abb141042a |
| children | e1e5462b7d81 |
comparison
equal
deleted
inserted
replaced
| 13076:f3abb141042a | 13077:64ca89ffc639 |
|---|---|
| 152 } | 152 } |
| 153 | 153 |
| 154 static guint _gaim_logsize_user_equal(struct _gaim_logsize_user *lu1, | 154 static guint _gaim_logsize_user_equal(struct _gaim_logsize_user *lu1, |
| 155 struct _gaim_logsize_user *lu2) | 155 struct _gaim_logsize_user *lu2) |
| 156 { | 156 { |
| 157 return ((!strcmp(lu1->name, lu2->name)) && lu1->account == lu2->account); | 157 return (lu1->account == lu2->account && (!strcmp(lu1->name, lu2->name))); |
| 158 } | 158 } |
| 159 | 159 |
| 160 static void _gaim_logsize_user_free_key(struct _gaim_logsize_user *lu) | 160 static void _gaim_logsize_user_free_key(struct _gaim_logsize_user *lu) |
| 161 { | 161 { |
| 162 g_free(lu->name); | 162 g_free(lu->name); |
