Move httpd port into config.h
authorChip Black <bytex64@bytex64.net>
Wed, 12 Jan 2011 20:55:59 +0000 (14:55 -0600)
committerChip Black <bytex64@bytex64.net>
Sun, 16 Jan 2011 11:39:24 +0000 (05:39 -0600)
config.h
http/http_blerg.c

index ac8851a..9a16246 100644 (file)
--- a/config.h
+++ b/config.h
@@ -5,6 +5,7 @@
 #define HASH_TAGS_PATH "hash_tags"
 #define REF_TAGS_PATH "ref_tags"
 #define BASEURL "http://blerg.dominionofawesome.com/"
+#define HTTP_BLERG_PORT 8080
 
 #define RECORDS_PER_SEGMENT 65536
 #define MAX_RECORD_SIZE 65535  /* No greater than 65535 */
index 1a751ac..9fc72a7 100644 (file)
@@ -548,7 +548,7 @@ int main(int argc, char *argv[]) {
 
        init_responses();
 
-       daemon = MHD_start_daemon(MHD_USE_DEBUG, 8080, NULL, NULL, &ahc_derp, NULL, MHD_OPTION_END);
+       daemon = MHD_start_daemon(MHD_USE_DEBUG, HTTP_BLERG_PORT, NULL, NULL, &ahc_derp, NULL, MHD_OPTION_END);
        if (daemon == NULL) {
                fprintf(stderr, "Could not start web server\n");
                return 1;