From: Tom Kistner Date: Mon, 27 Jun 2005 15:11:04 +0000 (+0000) Subject: Fix cosmetic compiler warnings X-Git-Tag: exim-4_52~19 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5614ee869f3b80043ab23452d72a86077ab9797c;p=exim.git Fix cosmetic compiler warnings --- diff --git a/src/src/routers/redirect.c b/src/src/routers/redirect.c index 2173923ec..418116d03 100644 --- a/src/src/routers/redirect.c +++ b/src/src/routers/redirect.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/routers/redirect.c,v 1.12 2005/05/24 08:50:36 ph10 Exp $ */ +/* $Cambridge: exim/src/src/routers/redirect.c,v 1.13 2005/06/27 15:11:04 tom Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -573,7 +573,7 @@ if (!ugid.gid_set && pw != NULL) if(usesrs) { - int srs_action, n_srs; + int srs_action = 0, n_srs; uschar *res; uschar *usedomain; diff --git a/src/src/spam.c b/src/src/spam.c index 0095bb9bc..7ee42680f 100644 --- a/src/src/spam.c +++ b/src/src/spam.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/spam.c,v 1.9 2005/06/27 14:29:44 ph10 Exp $ */ +/* $Cambridge: exim/src/src/spam.c,v 1.10 2005/06/27 15:11:04 tom Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -44,6 +44,9 @@ int spam(uschar **listptr) { struct pollfd pollfd; #endif + /* stop compiler warning */ + result = result; + /* find the username from the option list */ if ((user_name = string_nextinlist(&list, &sep, user_name_buffer, diff --git a/src/src/srs.h b/src/src/srs.h index 3d88132cc..79e015726 100644 --- a/src/src/srs.h +++ b/src/src/srs.h @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/srs.h,v 1.2 2004/12/16 15:11:47 tom Exp $ */ +/* $Cambridge: exim/src/src/srs.h,v 1.3 2005/06/27 15:11:04 tom Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -21,7 +21,7 @@ int eximsrs_init(); int eximsrs_done(); int eximsrs_forward(uschar **result, uschar *orig_sender, uschar *domain); int eximsrs_reverse(uschar **result, uschar *address); -int eximsrs_db(BOOL reverse, uschar *srs_db); +int eximsrs_db_set(BOOL reverse, uschar *srs_db); srs_result eximsrs_db_insert(srs_t *srs, char *data, uint data_len, char *result, uint result_len); srs_result eximsrs_db_lookup(srs_t *srs, char *data, uint data_len, char *result, uint result_len);