projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tolti commenti inutili e tolto i "parametri" al posto degli argomenti delle
[gapil.git]
/
sources
/
wwwd.c
diff --git
a/sources/wwwd.c
b/sources/wwwd.c
index 5d22a875b5ddaada1024fb6cb25b900ef5172972..f9b49fa86fcef631eb9c3c2821cba1841111b3c2 100644
(file)
--- a/
sources/wwwd.c
+++ b/
sources/wwwd.c
@@
-282,7
+282,6
@@
void ServPage(int sockfd)
j = 0;
while (!feof(file)) {
j = 0;
while (!feof(file)) {
- printf("Loop %d\n", j++);
if ( (nleft = full_fread(file, outbuf, 1024)) != 0) {
if (ferror(file)) {
fprintf(sock, "HTTP/1.0 %s\n", codes[3]);
if ( (nleft = full_fread(file, outbuf, 1024)) != 0) {
if (ferror(file)) {
fprintf(sock, "HTTP/1.0 %s\n", codes[3]);
@@
-292,7
+291,6
@@
void ServPage(int sockfd)
return;
}
}
return;
}
}
- printf("Loop %d rimasti %d\n", j, nleft);
if (full_fwrite(sock, outbuf, 1024-nleft) != 0) {
if (ferror(file)) {
fprintf(sock, "HTTP/1.0 %s\n", codes[3]);
if (full_fwrite(sock, outbuf, 1024-nleft) != 0) {
if (ferror(file)) {
fprintf(sock, "HTTP/1.0 %s\n", codes[3]);
@@
-303,8
+301,6
@@
void ServPage(int sockfd)
}
}
}
}
}
}
- printf("Ok fin qui!");
-// line = fgets(buffer, MAXLINE, sock);
fclose(file);
fclose(sock);
return;
fclose(file);
fclose(sock);
return;