Changeset 3861 in MondoRescue for branches/3.3/mondo/src


Ignore:
Timestamp:
Mar 7, 2024, 11:01:16 AM (4 months ago)
Author:
Bruno Cornec
Message:

Fix proto for mvaddstr_and_log_it and does_file_exist

Location:
branches/3.3/mondo/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/common/libmondo-files-EXT.h

    r3610 r3861  
    88extern char *calc_checksum_of_file(char *filename);
    99extern long count_lines_in_file(char *filename);
    10 extern bool does_file_exist(char *filename);
     10extern bool does_file_exist(const char *filename);
    1111extern void exclude_nonexistent_files(char *inout);
    1212extern int figure_out_kernel_path_interactively_if_necessary(char *kernel);
  • branches/3.3/mondo/src/common/libmondo-files.c

    r3854 r3861  
    177177 * @return TRUE if it exists, FALSE otherwise.
    178178 */
    179 bool does_file_exist(char *filename)
     179bool does_file_exist(const char *filename)
    180180{
    181181
  • branches/3.3/mondo/src/common/libmondo-files.h

    r3610 r3861  
    1010char *calc_checksum_of_file(char *filename);
    1111long count_lines_in_file(char *filename);
    12 bool does_file_exist(char *filename);
    1312void exclude_nonexistent_files(char *inout);
    1413int figure_out_kernel_path_interactively_if_necessary(char *kernel);
  • branches/3.3/mondo/src/common/libmondo-verify.h

    r3858 r3861  
    2424extern void close_progress_form(void);
    2525extern long count_lines_in_file(char *);
    26 extern bool does_file_exist(char *);
     26extern bool does_file_exist(const char *);
    2727extern void exclude_nonexistent_files(char *);
    28 extern void fatal_error(char *);
     28extern void fatal_error(const char *);
    2929extern int find_and_mount_actual_cd(char *);
    3030extern int find_cdrom_device(char *, bool);
     
    8787extern int g_current_media_number;
    8888
    89 extern void mvaddstr_and_log_it(int, int, char *);
     89extern void mvaddstr_and_log_it(int, int, const char *);
    9090
    9191extern bool ask_me_yes_or_no(char *);
  • branches/3.3/mondo/src/common/newt-specific-EXT.h

    r3858 r3861  
    88extern void fatal_error(const char *error_string);
    99extern void finish(int signal);
    10 extern void mvaddstr_and_log_it(int y, int x, char *output);
     10extern void mvaddstr_and_log_it(int y, int x, const char *output);
    1111extern void open_evalcall_form(char *title);
    1212extern void open_progress_form(char *title, char *b1, char *b2, char *b3,
  • branches/3.3/mondo/src/common/newt-specific.c

    r3858 r3861  
    578578 * @param output The string to write.
    579579 */
    580 void mvaddstr_and_log_it(int y, int x, char *output) {
     580void mvaddstr_and_log_it(int y, int x, const char *output) {
    581581
    582582        assert_string_is_neither_NULL_nor_zerolength(output);
  • branches/3.3/mondo/src/mondorestore/mondo-rstr-newt.h

    r3858 r3861  
    3939extern long get_time(void);
    4040extern char *last_line_of_file(char *);
    41 extern bool does_file_exist(char *);
     41extern bool does_file_exist(const char *);
    4242extern void finish(int);
    4343extern long get_phys_size_of_drive(char *);
     
    5656                                            char *filename);
    5757extern int what_number_cd_is_this();
    58 //extern void fatal_error (char *);
    5958extern void sort_mountlist_by_device(struct mountlist_itself *);
    6059extern int load_mountlist(struct mountlist_itself *a, char *b);
     
    150149                                              struct raidlist_itself *);
    151150char *mountlist_entry_to_string(struct mountlist_itself *, int);
    152 void mvaddstr_and_log_it(int, int, char *);
    153151void nuke_mode_dummy();
    154152char *number_of_disks_as_string(int, char *);
  • branches/3.3/mondo/src/mondorestore/mondoprep.h

    r3300 r3861  
    4545extern void log_file_end_to_screen(char *, char *);
    4646extern int zero_out_a_device(char *);
    47 extern void mvaddstr_and_log_it(int, int, char *);
    48 extern bool does_file_exist(char *);
     47extern void mvaddstr_and_log_it(int, int, const char *);
     48extern bool does_file_exist(const char *);
    4949
    5050
  • branches/3.3/mondo/src/mondorestore/mr-externs.h

    r3854 r3861  
    2424extern void close_progress_form(void);
    2525extern long count_lines_in_file(char *);
    26 extern bool does_file_exist(char *);
     26extern bool does_file_exist(const char *);
    2727extern int does_partition_exist(const char *device, int partno);
    2828extern int do_my_funky_lvm_stuff(bool, bool);
     
    4545extern void log_file_end_to_screen(char *, char *);
    4646extern void log_to_screen(const char *fmt, ...);
    47 extern void mvaddstr_and_log_it(int, int, char *);
     47extern void mvaddstr_and_log_it(int, int, const char *);
    4848extern int make_dummy_partitions(char *, int);
    4949extern int make_hole_for_file(char *);
Note: See TracChangeset for help on using the changeset viewer.