removed StartLibCitadel()
[citadel.git] / webcit / tests / test_main.c
index 115bbda95c22e06830db04ac4ed3f2cf1cfe2055..a0de76722ac67bae3bdd88ebf778ac2aba39c162 100644 (file)
@@ -3,7 +3,7 @@
  * waiting on the specified port for incoming HTTP connections.  When a
  * connection is established, it calls context_loop() from context_loop.c.
  *
- * Copyright (c) 1996-2010 by the citadel.org developers.
+ * Copyright (c) 1996-2016 by the citadel.org developers.
  * This program is released under the terms of the GNU General Public License v3.
  */
 
@@ -65,7 +65,6 @@ extern int LoadTemplates;
  */
 int main(int argc, char **argv)
 {
-       size_t basesize = 2;            /* how big should strbufs be on creation? */
        pthread_attr_t attr;            /* Thread attributes */
        int a;                  /* General-purpose variables */
        char tracefile[PATH_MAX];
@@ -86,10 +85,8 @@ int main(int argc, char **argv)
 
        /* Ensure that we are linked to the correct version of libcitadel */
        if (libcitadel_version_number() < LIBCITADEL_VERSION_NUMBER) {
-               fprintf(stderr, " You are running libcitadel version %d.%02d\n",
-                       (libcitadel_version_number() / 100), (libcitadel_version_number() % 100));
-               fprintf(stderr, "WebCit was compiled against version %d.%02d\n",
-                       (LIBCITADEL_VERSION_NUMBER / 100), (LIBCITADEL_VERSION_NUMBER % 100));
+               fprintf(stderr, " You are running libcitadel version %d\n", (libcitadel_version_number()));
+               fprintf(stderr, "WebCit was compiled against version %d\n", LIBCITADEL_VERSION_NUMBER);
                return(1);
        }
 
@@ -117,10 +114,7 @@ int main(int argc, char **argv)
                        home_specified = 1;
                        home=1;
                        break;
-               case 'B': /* Basesize */
-                       basesize = atoi(optarg);
-                       if (basesize > 2)
-                               StartLibCitadel(basesize);
+               case 'B': /* deprecated */
                        break;
                case 'i':
                        safestrncpy(ip_addr, optarg, sizeof ip_addr);