Revision: 69967 http://sourceforge.net/p/brlcad/code/69967 Author: starseeker Date: 2017-07-18 18:59:44 +0000 (Tue, 18 Jul 2017) Log Message: ----------- don't shadow stime
Modified Paths: -------------- brlcad/trunk/misc/CMake/BRLCAD_Util.cmake Modified: brlcad/trunk/misc/CMake/BRLCAD_Util.cmake =================================================================== --- brlcad/trunk/misc/CMake/BRLCAD_Util.cmake 2017-07-18 14:07:34 UTC (rev 69966) +++ brlcad/trunk/misc/CMake/BRLCAD_Util.cmake 2017-07-18 18:59:44 UTC (rev 69967) @@ -685,19 +685,19 @@ int main(int argc, const char **argv) { - FILE *infp = NULL; time_t t = time(NULL); long stime; + FILE *infp = NULL; time_t t = time(NULL); long start_time; if (argc < 3) return 1; if (strncmp(argv[1], \"final\", 5) == 0) { if (argc < 4) return 1; printf(\"Done.\\n\\nBRL-CAD Release ${BRLCAD_VERSION}, Build ${CONFIG_DATE}\\n\\nElapsed compilation time: \"); - infp = fopen(argv[2], \"r\"); (void)fscanf(infp, \"%ld\", &stime); ; fclose(infp); printtime(((long)t) - stime); + infp = fopen(argv[2], \"r\"); (void)fscanf(infp, \"%ld\", &start_time); ; fclose(infp); printtime(((long)t) - start_time); printf(\"\\nElapsed time since configuration: \"); - infp = fopen(argv[3], \"r\"); (void)fscanf(infp, \"%ld\", &stime); ; fclose(infp); printtime(((long)t) - stime); + infp = fopen(argv[3], \"r\"); (void)fscanf(infp, \"%ld\", &start_time); ; fclose(infp); printtime(((long)t) - start_time); printf(\"\\n---\\n${INSTALL_LINE}\\n${BENCHMARK_LINE}\\n\\n\"); return 0; } printf(\"%s\", argv[1]); - infp = fopen(argv[2], \"r\"); (void)fscanf(infp, \"%ld\", &stime); ; fclose(infp); printtime(((long)t) - stime); + infp = fopen(argv[2], \"r\"); (void)fscanf(infp, \"%ld\", &start_time); ; fclose(infp); printtime(((long)t) - start_time); printf(\"\\n\"); return 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits