From 55118b82cab84a6c426e455cf028136a92c9c41f Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Mon, 1 Oct 2012 16:16:37 +0000 Subject: renamed variable "restrict" to "route_restrict" debian Bug#689322: "restrict" is a keyword in C99 tcpip/rip98d.c uses "restrict" as a variable name. This collides with the fact that in C99 "restrict" is a keyword. Compilers that default to C99-mode, or gcc -std=c99, fail to compile this code. --- tcpip/rip98r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tcpip/rip98r.c') diff --git a/tcpip/rip98r.c b/tcpip/rip98r.c index 9a623ff..f8d8090 100644 --- a/tcpip/rip98r.c +++ b/tcpip/rip98r.c @@ -128,7 +128,7 @@ void receive_routes(int s) continue; } - if (restrict) { + if (route_restrict) { if (network != 44) { if (debug && logging) syslog(LOG_DEBUG, " route to %s/%d metric %d - rejected\n", inet_ntoa(addr), bits, metric); -- cgit v1.2.3