summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-05-08 01:12:01 +0200
committerLeah Neukirchen <leah@vuxu.org>2020-05-08 01:12:01 +0200
commita9d9b31957b0a48f35e28f2102af2f7cd0be8d51 (patch)
tree4f42f33ea201e26a637d593c3237e4418daf3322
parent6fd0df4b8279b3856b1f84bb6cbeb861e1cb8a82 (diff)
downloadhittpd-a9d9b31957b0a48f35e28f2102af2f7cd0be8d51.tar.gz
hittpd-a9d9b31957b0a48f35e28f2102af2f7cd0be8d51.tar.xz
hittpd-a9d9b31957b0a48f35e28f2102af2f7cd0be8d51.zip
define global for default port
-rw-r--r--hittpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hittpd.c b/hittpd.c
index 7ec4337..40c81a3 100644
--- a/hittpd.c
+++ b/hittpd.c
@@ -90,6 +90,7 @@ char mimetypes[] =
 char default_mimetype[] = "text/plain";   // "application/octet-stream"
 char default_wwwroot[] = "/var/www";
 char default_vhost[] = "_default";
+char default_port[] = "80";
 
 char *wwwroot = default_wwwroot;
 int tilde = 0;
@@ -850,7 +851,7 @@ read_client(int i)
 int
 main(int argc, char *argv[])
 {
-	char *port = "80";
+	const char *port = default_port;
 	char *host = 0;
 
 	int c;