From ad6f5ae47f8a1619991813a7a7a043b164827a4e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 14 Apr 2004 18:46:33 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3260 --- checkin_notes | 3 ++- tools/backend_lib.C | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/checkin_notes b/checkin_notes index dcc942e78d..f7156f1d8b 100755 --- a/checkin_notes +++ b/checkin_notes @@ -11573,13 +11573,14 @@ David April 13 2004 target_nresults max_error_results max_total_results + max_success_results These are not copied to the output, but are used to populate the WORKUNIT (which is now passed in as an arg) The latter means that 'create_work' (the cmdline program) is simplified; - it can now take as few as 4 args + it can now take as few as 5 args tools backend_lib.C diff --git a/tools/backend_lib.C b/tools/backend_lib.C index ce2fee0dfc..0abcd7d5cb 100644 --- a/tools/backend_lib.C +++ b/tools/backend_lib.C @@ -68,8 +68,7 @@ static int process_wu_template( bool found=false; strcpy(out, ""); - p = strtok(tmplate, "\n"); - while (p) { + for (p=strtok(tmplate, "\n"); p; p=strtok(0, "\n")) { if (match_tag(p, "")) { file_number = -1; strcat(out, "\n"); @@ -158,7 +157,6 @@ static int process_wu_template( strcat(out, p); strcat(out, "\n"); } - p = strtok(0, "\n"); } if (!found) { fprintf(stderr, "create_work: bad WU template - no \n");