Ignore:
Timestamp:
Jan 28, 2007, 7:04:41 PM (12 years ago)
Author:
bruno
Message:
  • Fix mindi install messages (reported by Andree Leidenfrost)
  • remove paranoid_free/free for mr_free
  • mr_asprintf used everywhere
  • mr_malloc used everywhere
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondo-rstr-compare.c

    r1067 r1080  
    11/***************************************************************************
    2        mondo-compare.c  -  compares mondoarchive data
    3                              -------------------
    4     begin                : Fri Apr 25 2003
    5     copyright            : (C) 2000 by Hugo Rabson
    6     email                : Hugo Rabson <hugorabson@msn.com>
    7     cvsid                : $Id$
    8 ***************************************************************************/
    9 
    10 /***************************************************************************
    11  *                                                                         *
    12  *   This program is free software; you can redistribute it and/or modify  *
    13  *   it under the terms of the GNU General Public License as published by  *
    14  *   the Free Software Foundation; either version 2 of the License, or     *
    15  *   (at your option) any later version.                                   *
    16  *                                                                         *
    17  ***************************************************************************/
    18 
    19 /***************************************************************************
    20  *                         Change Log                                      *
    21  ***************************************************************************
    22 .
    23 
    24 
    25 
    26 10/21/2003
    27 - changed "/mnt/cdrom" to MNT_CDROM
    28 
    29 10/18
    30 - don't say unknown compressor if no compressor at all
    31 
    32 09/17
    33 - cleaned up logging & conversion-to-changed.txt
    34 - cleaned up compare_mode()
    35 
    36 09/16
    37 - fixed bad malloc(),free() pairs in compare_a_biggiefile()
    38 
    39 09/14
    40 - compare_mode() --- a couple of strings were the wrong way round,
    41   e.g. changed.txt and changed.files
    42 
    43 05/05
    44 - exclude /dev/ * from list of changed files
    45 
    46 04/30
    47 - added textonly mode
    48 
    49 04/27
    50 - improved compare_mode() to allow for ISO/cd/crazy people
    51 
    52 04/25
    53 - first incarnation
     2* compares mondoarchive data
     3* $Id$
    544*/
    55 
    565
    576#include <pthread.h>
     
    207156    }
    208157
    209     paranoid_free(original_cksum_ptr);
    210     paranoid_free(original_cksum);
    211     paranoid_free(bigfile_fname_ptr);
    212     paranoid_free(bigfile_fname);
    213     paranoid_free(checksum_ptr);
    214     paranoid_free(checksum);
    215     paranoid_free(command_ptr);
    216     paranoid_free(command);
    217     paranoid_free(tmp_ptr);
    218     paranoid_free(tmp);
     158    mr_free(original_cksum_ptr);
     159    mr_free(original_cksum);
     160    mr_free(bigfile_fname_ptr);
     161    mr_free(bigfile_fname);
     162    mr_free(checksum_ptr);
     163    mr_free(checksum);
     164    mr_free(command_ptr);
     165    mr_free(command);
     166    mr_free(tmp_ptr);
     167    mr_free(tmp);
    219168
    220169    return (retval);
     
    395344    }
    396345    unlink(logfile);
    397     paranoid_free(command);
    398     paranoid_free(tmp);
    399     paranoid_free(filelist_name);
    400     paranoid_free(logfile);
     346    mr_free(command);
     347    mr_free(tmp);
     348    mr_free(filelist_name);
     349    mr_free(logfile);
    401350    malloc_string(archiver_exe);
    402351    malloc_string(compressor_exe);
     
    494443        mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    495444    }
    496     paranoid_free(tarball_fname);
    497     paranoid_free(progress_str);
    498     paranoid_free(tmp);
     445    mr_free(tarball_fname);
     446    mr_free(progress_str);
     447    mr_free(tmp);
    499448    return (retval);
    500449}
     
    555504    }
    556505
    557     paranoid_free(tmp);
    558     paranoid_free(cwd);
    559     paranoid_free(new);
    560     paranoid_free(command);
     506    mr_free(tmp);
     507    mr_free(cwd);
     508    mr_free(new);
     509    mr_free(command);
    561510
    562511    return (resA + resB);
     
    663612    }
    664613    kill_petris();
    665     paranoid_free(tmp);
     614    mr_free(tmp);
    666615    return (retval);
    667616}
     
    717666
    718667    mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    719     paranoid_free(dir);
    720     paranoid_free(command);
     668    mr_free(dir);
     669    mr_free(command);
    721670    return (res);
    722671}
     
    761710        mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    762711    }
    763     paranoid_free(dir);
    764     paranoid_free(command);
     712    mr_free(dir);
     713    mr_free(command);
    765714    return (res);
    766715}
Note: See TracChangeset for help on using the changeset viewer.