client messages

svn path=/trunk/boinc/; revision=1406
This commit is contained in:
David Anderson 2003-06-11 23:36:49 +00:00
parent 537b48cc13
commit 57470b3e40
1 changed files with 2 additions and 1 deletions

View File

@ -666,6 +666,7 @@ void send_code_sign_key(
} }
bool wrong_major_version(SCHEDULER_REQUEST& sreq, SCHEDULER_REPLY& reply) { bool wrong_major_version(SCHEDULER_REQUEST& sreq, SCHEDULER_REPLY& reply) {
char buf[256];
if (sreq.core_client_major_version != MAJOR_VERSION) { if (sreq.core_client_major_version != MAJOR_VERSION) {
reply.nucleus_only = true; reply.nucleus_only = true;
sprintf(reply.message, sprintf(reply.message,
@ -679,7 +680,7 @@ bool wrong_major_version(SCHEDULER_REQUEST& sreq, SCHEDULER_REPLY& reply) {
sprintf(buf, "Wrong major version from user [%s]: wanted %d, got %d\n", sprintf(buf, "Wrong major version from user [%s]: wanted %d, got %d\n",
sreq.authenticator, MAJOR_VERSION, sreq.core_client_major_version sreq.authenticator, MAJOR_VERSION, sreq.core_client_major_version
); );
write_log(buf, MSG_NORMAL); write_log(MSG_NORMAL, buf);
return true; return true;
} }
return false; return false;