Mercurial > masqmail
comparison src/address.c @ 13:49dab67fe461
code beautifying
author | meillo@marmaro.de |
---|---|
date | Wed, 29 Oct 2008 21:10:18 +0100 |
parents | 26e34ae9a3e3 |
children | a8f3424347dc |
comparison
equal
deleted
inserted
replaced
12:9fb7ddbaf129 | 13:49dab67fe461 |
---|---|
41 } | 41 } |
42 | 42 |
43 return addr; | 43 return addr; |
44 } | 44 } |
45 | 45 |
46 /* nothing special about pipes here, | 46 /* nothing special about pipes here, but its only called for that purpose */ |
47 but its only called for that purpose */ | |
48 address* | 47 address* |
49 create_address_pipe(gchar * path) | 48 create_address_pipe(gchar * path) |
50 { | 49 { |
51 address *addr = g_malloc(sizeof(address)); | 50 address *addr = g_malloc(sizeof(address)); |
52 | 51 |
101 } | 100 } |
102 | 101 |
103 gboolean | 102 gboolean |
104 addr_isequal(address * addr1, address * addr2) | 103 addr_isequal(address * addr1, address * addr2) |
105 { | 104 { |
106 return | 105 return (strcmp(addr1->local_part, addr2->local_part) == 0) |
107 (strcmp(addr1->local_part, addr2->local_part) == 0) && | 106 && (strcasecmp(addr1->domain, addr2->domain) == 0); |
108 (strcasecmp(addr1->domain, addr2->domain) == 0); | |
109 } | 107 } |
110 | 108 |
111 /* searches in ancestors of addr1 */ | 109 /* searches in ancestors of addr1 */ |
112 gboolean | 110 gboolean |
113 addr_isequal_parent(address * addr1, address * addr2) | 111 addr_isequal_parent(address * addr1, address * addr2) |