- client: fix typo that broke communication with account managers

- API: compile fix for Win

svn path=/trunk/boinc/; revision=22804
This commit is contained in:
David Anderson 2010-12-02 19:38:25 +00:00
parent 9f33bbb5ad
commit 2855bd3840
3 changed files with 17 additions and 4 deletions

View File

@ -203,7 +203,11 @@ char* boinc_msg_prefix(char* sbuf, int len) {
strcpy(sbuf, "time() failed");
return sbuf;
}
#ifdef _WIN32
if (localtime_s(&tm, &x) == EINVAL) {
#else
if (localtime_r(&x, &tm) == NULL) {
#endif
strcpy(sbuf, "localtime() failed");
return sbuf;
}

View File

@ -8609,3 +8609,12 @@ David 2 Dec 2010
client/
rr_sim.cpp
David 2 Dec 2010
- client: fix typo that broke communication with account managers
- API: compile fix for Win
client/
acct_mgr.cpp
api/
boinc_api.cpp

View File

@ -151,10 +151,10 @@ int ACCT_MGR_OP::do_rpc(
" <hostid>%d</hostid>\n"
" <not_started_dur>%f</not_started_dur>\n"
" <in_progress_dur>%f</in_progress_dur>\n"
" <attached_via_acct_mgr>%d</attached_via_acct_mgr/>\n"
" <dont_request_more_work>%d</dont_request_more_work/>\n"
" <detach_when_done>%d</detach_when_done/>\n"
" <ended>%d</ended/>\n"
" <attached_via_acct_mgr>%d</attached_via_acct_mgr>\n"
" <dont_request_more_work>%d</dont_request_more_work>\n"
" <detach_when_done>%d</detach_when_done>\n"
" <ended>%d</ended>\n"
" </project>\n",
p->master_url,
p->project_name,