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/ html/
user/ user/
team_lookup.php 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); 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) { if (sock == -1) {
return; return;
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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