summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Linehan <patientulysses@gmail.com>2012-06-07 10:54:21 -0400
committerJason Linehan <patientulysses@gmail.com>2012-06-07 10:54:21 -0400
commitdc41a519ac9a2ce8ac49e0829f93cbeb9b1fb660 (patch)
tree93cfdfe67b929abc57c2764d8ffca61578cfeb19
parente661bb1dba819490c55643536555b72ffbac5014 (diff)
downloadcloth-dc41a519ac9a2ce8ac49e0829f93cbeb9b1fb660.tar.gz
cloth-dc41a519ac9a2ce8ac49e0829f93cbeb9b1fb660.tar.bz2
cloth-dc41a519ac9a2ce8ac49e0829f93cbeb9b1fb660.zip
Eliminates redundant log options
-rw-r--r--cloth.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/cloth.c b/cloth.c
index 2aa0ad1..86c2527 100644
--- a/cloth.c
+++ b/cloth.c
@@ -22,10 +22,8 @@
#define HELP_MESSAGE "usage: cloth <PORT> <WWW-DIRECTORY>\n"
char www_path[BUFSIZE];
-char log_path[BUFSIZE];
char port_num[BUFSIZE];
-
/******************************************************************************
* LOGS
* Implements the common log format and standard log time format.
@@ -257,7 +255,7 @@ int main(int argc, char **argv)
port = DEFAULT_PORT;
/* Check that all required arguments have been supplied */
- while ((ch = getopt(argc, argv, "p:d:l:?")) != -1) {
+ while ((ch = getopt(argc, argv, "p:d:?")) != -1) {
switch (ch) {
case 'p':
port = atoi(optarg);
@@ -265,9 +263,6 @@ int main(int argc, char **argv)
case 'd':
sprintf(www_path, "%s", optarg);
break;
- case 'l':
- sprintf(log_path, "%s", optarg);
- break;
case '?':
printf("%s", HELP_MESSAGE);
exit(1);