mirror of https://github.com/BOINC/boinc.git
16b1305db7
mostly so that the parse function could assume that everything was initially zero. However, various back-end functions pass around SCHED_CONFIG& as an argument (also named "config"). This creates a shadow, which is always bad. Worse is the possibility that some projects have back-end programs that have a SCHED_CONFIG variable that's automatic, and therefore isn't zero initially, and therefore isn't parsing correctly. To fix this, I changed the 2 vectors in SCHED_CONFIG into pointers, and have the parse routine zero the structure. I was tempted to remove the SCHED_CONFIG& args to back-end functions, but this would have broken some projects' code. I did, however, change the name from config to config_loc to avoid shadowing. Also fixed various other compiler warnings. svn path=/trunk/boinc/; revision=15541 |
||
---|---|---|
.. | ||
1sec.C | ||
Makefile.am | ||
concat.C | ||
error.C | ||
upper_case.C |