From e476507780c8d223365fadf59197ea7841848d3d Mon Sep 17 00:00:00 2001 From: Chip Black Date: Wed, 12 Jan 2011 14:55:59 -0600 Subject: [PATCH] Move httpd port into config.h --- config.h | 1 + http/http_blerg.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index ac8851a..9a16246 100644 --- 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 index 1a751ac..9fc72a7 100644 --- 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; -- 2.25.1