]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Build without TLS
authorAlan T. DeKok <aland@freeradius.org>
Thu, 19 May 2011 10:16:28 +0000 (12:16 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 19 May 2011 10:16:28 +0000 (12:16 +0200)
src/main/listen.c

index 1fb1286b366c469a3dc381729452b3b29ae707a0..7a67ab69d5775cd24b9797eb4e1579ab47a4329c 100644 (file)
@@ -816,10 +816,12 @@ static int socket_print(const rad_listen_t *this, char *buffer, size_t bufsize)
        snprintf(buffer, bufsize, "%d", sock->my_port);
        FORWARD;
 
+#ifdef WITH_TLS
        if (this->tls) {
                ADDSTRING(" (TLS)");
                FORWARD;
        }
+#endif
 
        if (this->server) {
                ADDSTRING(" as server ");
@@ -2610,6 +2612,9 @@ int listen_init(CONF_SECTION *config, rad_listen_t **head, int spawn_flag)
 #ifdef WITH_PROXY
        int             defined_proxy = 0;
 #endif
+#ifndef WITH_TLS
+       spawn_flag = spawn_flag; /* -Wunused */
+#endif
 
        /*
         *      We shouldn't be called with a pre-existing list.