Ignore:
Timestamp:
Sep 24, 2009, 3:50:38 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Remove some compiler warnings on main
  • Adds function mr_chomp and mr_strip_char and use them in mr_date and call_program_and_get_last_line_of_output
  • Fix call_program_and_get_last_line_of_output to return the right result using a temp file instead of popen
  • Fix an issue in mr_getline_int in case of eof (returns now an empty string)
  • Sequencing of Init of bkpinfo reviewed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/newt-specific.c

    r2414 r2421  
    9696    extern int g_current_media_number;
    9797    pid_t g_main_pid = 0;       ///< The PID of the main Mondo process.
    98     long g_maximum_progress = 999;  ///< The maximum amount of progress (100%) for the currently opened progress form.
     98    long g_maximum_progress = 999L; ///< The maximum amount of progress (100%) for the currently opened progress form.
    9999    long g_current_progress = -999; ///< The current amount of progress (filelist #, etc.) for the currently opened progress form.
    100100    long g_start_time = 0L;     ///< The time (in seconds since the epoch) that the progress form was opened.
     
    644644            g_blurb3 = newtLabel(2, 4, blurb2);
    645645            newtCenteredWindow(60, 11, title);
    646             g_scale = newtScale(3, 6, 54, g_maximum_progress);
     646            g_scale = newtScale(3, 6, 54, (long long)g_maximum_progress);
    647647            g_progressForm = newtForm(NULL, NULL, 0);
    648648            g_percentline = newtLabel(10, 9, "This is the percentline");
Note: See TracChangeset for help on using the changeset viewer.