git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build: avoid compiling code for unused transports, routers, authenticators
[exim.git]
/
src
/
src
/
routers
/
accept.c
diff --git
a/src/src/routers/accept.c
b/src/src/routers/accept.c
index 3cb43b6180399e3b520d46c0f1e7c7659458c3ce..9766e5e103140c05ab0b83d47e886ce0c1ea3595 100644
(file)
--- a/
src/src/routers/accept.c
+++ b/
src/src/routers/accept.c
@@
-3,11
+3,14
@@
*************************************************/
/* Copyright (c) University of Cambridge 1995 - 2018 */
*************************************************/
/* Copyright (c) University of Cambridge 1995 - 2018 */
-/* Copyright (c) The Exim Maintainers 2020 */
+/* Copyright (c) The Exim Maintainers 2020
- 2021
*/
/* See the file NOTICE for conditions of use and distribution. */
/* See the file NOTICE for conditions of use and distribution. */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "../exim.h"
#include "../exim.h"
+
+#ifdef ROUTER_ACCEPT /* Remainder of file */
#include "rf_functions.h"
#include "accept.h"
#include "rf_functions.h"
#include "accept.h"
@@
-103,12
+106,9
@@
accept_router_options_block *ob =
(accept_router_options_block *)(rblock->options_block);
*/
int rc;
(accept_router_options_block *)(rblock->options_block);
*/
int rc;
-uschar *errors_to;
-uschar *remove_headers;
-header_line *extra_headers;
-
-addr_new = addr_new; /* Keep picky compilers happy */
-addr_succeed = addr_succeed;
+const uschar * errors_to;
+uschar * remove_headers;
+header_line * extra_headers;
DEBUG(D_route) debug_printf("%s router called for %s\n domain = %s\n",
rblock->name, addr->address, addr->domain);
DEBUG(D_route) debug_printf("%s router called for %s\n domain = %s\n",
rblock->name, addr->address, addr->domain);
@@
-139,4
+139,5
@@
return rf_queue_add(addr, addr_local, addr_remote, rblock, pw)? OK : DEFER;
}
#endif /*!MACRO_PREDEF*/
}
#endif /*!MACRO_PREDEF*/
+#endif /*ROUTER_ACCEPT*/
/* End of routers/accept.c */
/* End of routers/accept.c */