Remove broken macro.
authorAlan T. DeKok <aland@freeradius.org>
Tue, 17 Feb 2009 13:11:31 +0000 (14:11 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 17 Feb 2009 13:11:31 +0000 (14:11 +0100)
C preprocessor directives aren't allowed in macros

src/main/listen.c

index 368711a..e08ad87 100644 (file)
@@ -95,21 +95,6 @@ RADCLIENT *client_listener_find(const rad_listen_t *listener,
        rad_assert(listener != NULL);
        rad_assert(ipaddr != NULL);
 
-       rad_assert((listener->type == RAD_LISTEN_AUTH)
-#ifdef WITH_STATS
-                  || (listener->type == RAD_LISTEN_NONE)
-#endif
-#ifdef WITH_ACCOUNTING
-                  || (listener->type == RAD_LISTEN_ACCT)
-#endif
-#ifdef WITH_VMPS
-                  || (listener->type == RAD_LISTEN_VQP)
-#endif
-#ifdef WITH_DHCP
-                  || (listener->type == RAD_LISTEN_DHCP)
-#endif
-                  );
-
        clients = ((listen_socket_t *)listener->data)->clients;
 
        /*