From dd522e23bbdc3498b3667b6c086600826c87cdca Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sat, 28 Jul 2012 17:43:45 +0200 Subject: [PATCH] (Logger) Throw error and stop compilation if UDP port and IP address are not defined instead of ugly hardcoded static IP address/UDP port defaults --- console/logger/logger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console/logger/logger.c b/console/logger/logger.c index 85f6df4b6b..ce72f47fbb 100644 --- a/console/logger/logger.c +++ b/console/logger/logger.c @@ -40,11 +40,11 @@ #include "logger.h" #if !defined(PC_DEVELOPMENT_IP_ADDRESS) -#define PC_DEVELOPMENT_IP_ADDRESS "192.168.1.7" +#error "An IP address for the PC logging server was not set in the Makefile, cannot continue." #endif #if !defined(PC_DEVELOPMENT_UDP_PORT) -#define PC_DEVELOPMENT_UDP_PORT 3490 +#error "An UDP port for the PC logging server was not set in the Makefile, cannot continue." #endif static int g_sid;