From e0210adeab0125ab0a799fc4e45dd62283abd03f Mon Sep 17 00:00:00 2001 From: Simone Piccardi Date: Wed, 16 Mar 2005 17:55:48 +0000 Subject: [PATCH] Tolta opzione inutile dal web server e messa opzione per far andare bene eps2pdf nel Makefile segnalata da Fabio Rossi --- Makefile | 2 +- sources/wwwd.c | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 043f6f4..f850d2b 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ $(HTML_H): %.h.html: %.h source-highlight -f html -s cpp $< $(PDF_IMG): %.pdf: %.eps - epstopdf $< --outfile=$@ + GS_OPTIONS="-dAutoRotatePages=/None" epstopdf $< --outfile=$@ $(PS_IMG): %.ps : %.eps eps2eps $< $@ diff --git a/sources/wwwd.c b/sources/wwwd.c index 9fceda5..f144eb0 100644 --- a/sources/wwwd.c +++ b/sources/wwwd.c @@ -68,7 +68,6 @@ int main(int argc, char *argv[]) * Variables definition */ int list_fd, conn_fd; - int waiting = 0; int compat = 0; int reroot = 0; char * rootdir; @@ -101,11 +100,7 @@ int main(int argc, char *argv[]) case 'd': debugging = 1; break; - case 'w': - waiting = strtol(optarg, NULL, 10); - break; case 'r': - printf("chroot\n"); reroot = 1; rootdir = optarg; break; @@ -135,7 +130,6 @@ int main(int argc, char *argv[]) } /* chroot if requested */ if (reroot) { - printf("chroot to %s\n", rootdir); if (chdir(rootdir)) { perror("Cannot find directory to chroot"); exit(1); @@ -166,7 +160,6 @@ int main(int argc, char *argv[]) PrintErr("listen error"); exit(1); } - if (waiting) sleep(waiting); /* handle echo to client */ while (1) { /* accept connection */ -- 2.30.2