compile fixes

svn path=/trunk/boinc/; revision=9243
This commit is contained in:
David Anderson 2006-01-16 06:23:14 +00:00
parent 92409fdb82
commit 0f9b6be293
8 changed files with 16 additions and 8 deletions

View File

@ -484,3 +484,11 @@ David 15 Jan 2006
html/
user/
team_lookup.php
David 15 Jan 2006
- compile fixes for gcc4.0
client/
gui_rpc_server.C
lib/
network.C

View File

@ -281,7 +281,7 @@ void GUI_RPC_CONN_SET::got_select(FDSET_GROUP& fg) {
}
boinc_socklen_t addr_len = sizeof(addr);
sock = accept(lsock, (struct sockaddr*)&addr, &addr_len);
sock = accept(lsock, (struct sockaddr*)&addr, (socklen_t*)&addr_len);
if (sock == -1) {
return;
}

View File

@ -72,7 +72,7 @@ list_item("-no_gui_rpc",
"Don't allow GUI RPCs."
);
list_item("-daemon",
"Run as daemon (detach from controlling terminal; Linux only)
"Run as daemon (detach from controlling terminal; Linux only)"
);
list_end();
echo "

View File

@ -36,7 +36,7 @@ struct BOINC_OPTIONS {
int direct_process_action;
};
int boinc_init_options(BOINC_OPTIONS&);
int boinc_init_options(BOINC_OPTIONS&);
</pre>
";
list_start();

View File

@ -6,14 +6,14 @@ Long-running applications can upload particular output files
before the result as a whole is finished.
To initiate the upload of an output file, call
<pre>
extern int boinc_upload_file(std::string& name);
extern int boinc_upload_file(std::string&amp; name);
</pre>
where 'name' is the logical name of the file.
The application cannot modify the file after making this call.
<p>
To check on the status of a file being uploaded, call
<pre>
extern int boinc_upload_status(std::string& name);
extern int boinc_upload_status(std::string&amp; name);
</pre>
This will return zero if the upload of the file is finished
successfully.

View File

@ -54,7 +54,7 @@ list_item("tools",
);
list_item("zip",
"Compression functions; not used by BOINC,
buy may be useful for applications."
but may be useful for applications."
);
list_end();
page_tail();

View File

@ -293,7 +293,7 @@ their input files, their command-line arguments, or both.
<p>
For example, let's say you want to run a program
one ten input files 'file0', 'file1', ..., 'file9'.
on ten input files 'file0', 'file1', ..., 'file9'.
You might modify the above program with the following code:
<pre>
char filename[256];

View File

@ -172,7 +172,7 @@ int get_socket_error(int fd) {
socklen_t sinsz = sizeof(sin);
n = getpeername(fd, (struct sockaddr *)&sin, &sinsz);
#else
getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&n, &intsize);
getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&n, (socklen_t*)&intsize);
#endif
return n;
}