Mercurial > masqmail
comparison src/accept.c @ 377:9bc3e47b0222
Various cleanups to remove compiler warnings.
We're clean now, if we specify `-Wno-pointer-sign'.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 14 Jan 2012 18:44:48 +0100 |
parents | b27f66555ba8 |
children | 5781ba87df95 |
comparison
equal
deleted
inserted
replaced
376:028bc124d744 | 377:9bc3e47b0222 |
---|---|
38 while (p > res) { | 38 while (p > res) { |
39 *(--p) = base62_chars[value % 62]; | 39 *(--p) = base62_chars[value % 62]; |
40 value /= 62; | 40 value /= 62; |
41 } | 41 } |
42 return res; | 42 return res; |
43 } | |
44 | |
45 static gint | |
46 _g_list_addr_isequal(gconstpointer a, gconstpointer b) | |
47 { | |
48 address *addr1 = (address *) a; | |
49 address *addr2 = (address *) b; | |
50 int ret; | |
51 | |
52 if ((ret = strcasecmp(addr1->domain, addr2->domain)) == 0) { | |
53 return strcmp(addr1->local_part, addr2->local_part); | |
54 } | |
55 return ret; | |
56 } | 43 } |
57 | 44 |
58 /* | 45 /* |
59 ** accept message from anywhere. | 46 ** accept message from anywhere. |
60 ** A message from local is indicated by msg->recieved_host == NULL | 47 ** A message from local is indicated by msg->recieved_host == NULL |