Ignore:
Timestamp:
Mar 12, 2024, 3:10:24 AM (3 months ago)
Author:
Bruno Cornec
Message:

More compiler fixes

  • Fix unused vars
  • Fix FreeBSD #if alone
  • Use MDSTAT_FILE everywhere
  • Fix missing break
  • Fix some strncpy. mr_strncpy used when safe
  • Fix wrong g_isoform_header_str proto !
  • find-cd & find-dvd => find-optical
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/common/libmondo-archive.c

    r3891 r3892  
    14461446 * @param ntfsprog_fifo The FIFO to ntfsclone if this is an imagedev, NULL otherwise.
    14471447 * @param biggie_file_number The sequence number of this biggie file (starting from 0).
    1448  * @param noof_biggie_files The number of biggie files there are total.
    14491448 * @return The number of errors encountered (0 for success)
    14501449 * @see make_slices_and_images
    14511450 * @ingroup LLarchiveGroup
    14521451 */
    1453 int slice_up_file_etc(char *biggie_filename, char *ntfsprog_fifo, long biggie_file_number, long noof_biggie_files, bool use_ntfsprog) {
     1452int slice_up_file_etc(char *biggie_filename, char *ntfsprog_fifo, long biggie_file_number, bool use_ntfsprog) {
    14541453
    14551454    /*@ buffers ************************************************** */
     
    18121811                write_header_block_to_stream(biggie_fsize, bigfile_fname, use_ntfsprog ?  BLK_START_A_PIHBIGGIE : BLK_START_A_NORMBIGGIE);
    18131812            }
    1814             res = slice_up_file_etc(bigfile_fname, ntfsprog_fifo, biggie_file_number, noof_biggie_files, use_ntfsprog);
     1813            res = slice_up_file_etc(bigfile_fname, ntfsprog_fifo, biggie_file_number, use_ntfsprog);
    18151814
    18161815            /* Free it here as ntfsprog_fifo is not used anymore */
     
    24172416    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    24182417        write_header_block_to_stream((off_t)0, "start-of-afioballs", BLK_START_AFIOBALLS);
     2418#ifdef __FreeBSD__
    24192419#if __FreeBSD__ == 5
    24202420        log_msg(1, "Using single-threaded make_afioballs_and_images() to suit b0rken FreeBSD 5.0");
    24212421        res = make_afioballs_and_images_OLD();
     2422#endif
    24222423#else
    24232424        res = make_afioballs_and_images_OLD();
     
    26432644    mr_asprintf(broken_bios_sz, "yes"); /* assume so */
    26442645
    2645     if (pkpinfo->auto_recovery) {
     2646    if (bkpinfo->auto_recovery) {
    26462647        mr_asprintf(cd_recovery_sz, "yes");
    26472648    } else {
Note: See TracChangeset for help on using the changeset viewer.