From: Chip Black Date: Wed, 12 Jan 2011 20:55:59 +0000 (-0600) Subject: Move httpd port into config.h X-Git-Tag: v1.0-ish~17 X-Git-Url: http://git.bytex64.net/?a=commitdiff_plain;h=e476507780c8d223365fadf59197ea7841848d3d;p=blerg.git Move httpd port into config.h --- 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;