commit:e476507780c8d223365fadf59197ea7841848d3d
author:Chip Black
committer:Chip Black
date:Wed Jan 12 14:55:59 2011 -0600
parents:110a2422ce922fbc0dd4d84ad64ffbc3f66f0fc0
Move httpd port into config.h
diff --git a/config.h b/config.h
line changes: +1/-0
index ac8851a..9a16246
--- 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 */

diff --git a/http/http_blerg.c b/http/http_blerg.c
line changes: +1/-1
index 1a751ac..9fc72a7
--- a/http/http_blerg.c
+++ b/http/http_blerg.c
@@ -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;