- Timestamp:
- Aug 21, 2009, 1:50:43 AM (16 years ago)
- Location:
- branches/2.2.10/mondo/src/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-fork-EXT.h
r1999 r2339 7 7 extern int eval_call_to_make_USB(char *call, 8 8 char *what_i_am_doing); 9 extern int eval_call_to_make_ISO(char *basic_call, char *isofile, 10 int cd_no, char *logstub, 11 char *what_i_am_doing); 9 extern int eval_call_to_make_ISO(char *basic_call, char *isofile, int cd_no, char *what_i_am_doing); 12 10 extern int run_external_binary_with_percentage_indicator_NEW(char *tt, 13 11 char *cmd); -
branches/2.2.10/mondo/src/common/libmondo-fork.c
r2331 r2339 86 86 * @param isofile Replaces @c _ISO_ in @p basic_call. Should probably be the ISO image to create (-o parameter to mkisofs). 87 87 * @param cd_no Replaces @c _CD#_ in @p basic_call. Should probably be the CD number. 88 * @param logstub Unused.89 88 * @param what_i_am_doing The action taking place (e.g. "Making ISO #1"). Used as the title of the progress dialog. 90 89 * @return Exit code of @c mkisofs (0 is success, anything else indicates failure). 91 * @bug @p logstub is unused.92 90 */ 93 91 int 94 eval_call_to_make_ISO(char *basic_call, char *isofile, 95 int cd_no, char *logstub, char *what_i_am_doing) 96 { 92 eval_call_to_make_ISO(char *basic_call, char *isofile, int cd_no, char *what_i_am_doing) { 97 93 98 94 /*@ int's *** */ … … 117 113 assert(bkpinfo != NULL); 118 114 assert_string_is_neither_NULL_nor_zerolength(isofile); 119 assert_string_is_neither_NULL_nor_zerolength(logstub);120 115 malloc_string(incoming); 121 116 malloc_string(old_stderr); … … 222 217 log_msg(1, "command = '%s'", command); 223 218 if (!g_text_mode) { 224 retval = run_external_binary_with_percentage_indicator_NEW 225 (what_i_am_doing, command); 219 retval = run_external_binary_with_percentage_indicator_NEW(what_i_am_doing, command); 226 220 } else { 227 221 retval += system(command); … … 630 624 631 625 632 int run_external_binary_with_percentage_indicator_NEW(char *tt, char *cmd) 633 { 626 int run_external_binary_with_percentage_indicator_NEW(char *tt, char *cmd) { 634 627 635 628 /*@ int *************************************************************** */ … … 667 660 for (sleep(1); command[0] != '\0'; sleep(1)) { 668 661 pcno = grab_percentage_from_last_line_of_file(MONDO_LOGFILE); 669 if (pcno < =0 || pcno > 100) {670 log_msg(8, "Weird pc# ");662 if (pcno < 0 || pcno > 100) { 663 log_msg(8, "Weird pc# %d", pcno); 671 664 continue; 672 665 } -
branches/2.2.10/mondo/src/common/libmondo-fork.h
r1999 r2339 9 9 int run_program_and_log_output(char *program, int); 10 10 int eval_call_to_make_USB(char *call, char *what_i_am_doing); 11 int eval_call_to_make_ISO(char *basic_call, char *isofile, 12 int cd_no, char *logstub, char *what_i_am_doing); 13 11 int eval_call_to_make_ISO(char *basic_call, char *isofile, int cd_no, char *what_i_am_doing); 14 12 int run_external_binary_with_percentage_indicator_NEW(char *tt, char *cmd); 15 13 int copy_from_src_to_dest(FILE *, FILE *, char);
Note:
See TracChangeset
for help on using the changeset viewer.