Differences From:
File
src/cgi.c
part of check-in
[8372cc0b81]
- Socket operations now functional in Win32 port. Added quotes around the filename portion of the command to edit thus working of windows in paths where the temp directory contains spaces. Added -all flag to clean command. If not specified each file is prompted for before removing.
by
jnc on
2007-09-22 18:34:49.
Also file
src/cgi.c
part of check-in
[3c5482959c]
- Merge in the w32 changes.
by
drh on
2007-09-22 19:43:55.
[view]
To:
File
src/cgi.c
part of check-in
[e63a9fd9d0]
- Fixed many uninitialized variable warnings and some potential bug found via -Wall -Werror on gcc.
by
jnc on
2007-09-25 21:21:35.
Also file
src/cgi.c
part of check-in
[92291035fe]
- Merged the compiler warning fixes into mainstream
by
jnc on
2007-09-25 21:28:30.
[view]
@@ -1023,9 +1023,9 @@
for(i=0; zToken[i] && zToken[i]!='?'; i++){}
if( zToken[i] ) zToken[i++] = 0;
cgi_setenv("PATH_INFO", zToken);
cgi_setenv("QUERY_STRING", &zToken[i]);
- if( getpeername(fileno(stdin), (struct sockaddr*)&remoteName, &size)>=0 ){
+ if( getpeername(fileno(stdin), (struct sockaddr*)&remoteName, (socklen_t*)&size)>=0 ){
char *zIpAddr = inet_ntoa(remoteName.sin_addr);
cgi_setenv("REMOTE_ADDR", zIpAddr);
/* Set the Global.zIpAddr variable to the server we are talking to.
@@ -1126,9 +1126,9 @@
FD_ZERO(&readfds);
FD_SET( listener, &readfds);
if( select( listener+1, &readfds, 0, 0, &delay) ){
lenaddr = sizeof(inaddr);
- connection = accept(listener, (struct sockaddr*)&inaddr, &lenaddr);
+ connection = accept(listener, (struct sockaddr*)&inaddr, (socklen_t*) &lenaddr);
if( connection>=0 ){
child = fork();
if( child!=0 ){
if( child>0 ) nchildren++;