Changeset 1168 in MondoRescue for branches/stable/mondo/src/mondorestore


Ignore:
Timestamp:
Feb 15, 2007, 12:27:39 AM (17 years ago)
Author:
Bruno Cornec
Message:

strip_spaces => mr_strip_spaces in mr_str.c and corrected at the same time :-)

Location:
branches/stable/mondo/src/mondorestore
Files:
5 edited

Legend:

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

    r1166 r1168  
    1414#include <pthread.h>
    1515#include "my-stuff.h"
    16 #include "../common/mondostructures.h"
    17 #include "../common/libmondo.h"
     16#include "mr_mem.h"
     17#include "mr_msg.h"
     18#include "mr_str.h"
     19
     20#include "mondostructures.h"
     21#include "libmondo.h"
    1822#include "mr-externs.h"
    1923#include "mondo-restore.h"
    2024#include "mondo-rstr-compare-EXT.h"
    2125#include "mondo-rstr-tools-EXT.h"
    22 #include "mr_mem.h"
    23 #include "mr_msg.h"
    2426
    2527extern void twenty_seconds_til_yikes(void);
     
    12391241                newtDrawRootText(0, g_noof_rows - 2, tmp);
    12401242                newtRefresh();
    1241                 strip_spaces(tmp);
     1243                mr_strip_spaces(tmp);
    12421244                update_progress_form(tmp);
    12431245            }
     
    14911493            newtRefresh();
    14921494        }
    1493         strip_spaces(tmp);
     1495        mr_strip_spaces(tmp);
    14941496        update_progress_form(tmp);
    14951497        if (current_slice_number == 0) {
  • branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c

    r1125 r1168  
    55#include "mr_mem.h"
    66#include "mr_msg.h"
     7#include "mr_str.h"
    78
    89extern char *g_mondo_cfg_file;  // where m*ndo-restore.cfg (the config file) is stored
     
    215216        strcpy(size_str, size_here);
    216217//      log_it ("Originals = %s,%s,%s,%s", device_str, mountpoint_str, format_str, size_str);
    217         strip_spaces(device_str);
    218         strip_spaces(mountpoint_str);
    219         strip_spaces(format_str);
    220         strip_spaces(size_str);
     218        mr_strip_spaces(device_str);
     219        mr_strip_spaces(mountpoint_str);
     220        mr_strip_spaces(format_str);
     221        mr_strip_spaces(size_str);
    221222//      log_it ("Modified = %s,%s,%s,%s", device_str, mountpoint_str, format_str, size_str);
    222223        if (b_res == bOK) {
     
    278279        ("Add variable", "Enter the name of the variable to add", sz_out,
    279280         MAX_STR_LEN)) {
    280         strip_spaces(sz_out);
     281        mr_strip_spaces(sz_out);
    281282        items = raidrec->additional_vars.entries;
    282283        for (i = 0;
     
    498499            return;
    499500        }
    500         strip_spaces(tmp);
     501        mr_strip_spaces(tmp);
    501502        if (tmp[0] == '[' && tmp[strlen(tmp) - 1] == ']') {
    502503            strcpy(sz, tmp);
     
    552553            return;
    553554        }
    554         strip_spaces(tmp);
     555        mr_strip_spaces(tmp);
    555556        if (tmp[0] == '[' && tmp[strlen(tmp) - 1] == ']') {
    556557            strcpy(sz, tmp);
     
    12311232        b_res = newtRunForm(myForm);
    12321233        strcpy(device_str, device_here);
    1233         strip_spaces(device_str);
     1234        mr_strip_spaces(device_str);
    12341235        strcpy(mountpoint_str, mountpoint_here);
    1235         strip_spaces(mountpoint_str);
     1236        mr_strip_spaces(mountpoint_str);
    12361237        strcpy(format_str, format_here);
    1237         strip_spaces(format_str);
     1238        mr_strip_spaces(format_str);
    12381239        if (b_res == bOK && strstr(device_str, RAID_DEVICE_STUB)
    12391240            && strstr(device_used_to_be, RAID_DEVICE_STUB)
     
    12511252            && strcmp(mountlist->el[currline].mountpoint, "image")) {
    12521253            strcpy(size_str, size_here);
    1253             strip_spaces(size_str);
     1254            mr_strip_spaces(size_str);
    12541255        } else {
    12551256            sprintf(size_str, "%ld",
     
    18981899            raidrec->additional_vars.el[lino].label, sz_out);
    18991900    if (popup_and_get_string(header, comment, sz_out, MAX_STR_LEN)) {
    1900         strip_spaces(sz_out);
     1901        mr_strip_spaces(sz_out);
    19011902        strcpy(raidrec->additional_vars.el[lino].value, sz_out);
    19021903    }
     
    23062307                 "At what path on this device can the ISO files be found?",
    23072308                 isodir_path, MAX_STR_LEN / 4)) {
    2308                 strip_spaces(isodir_device);
    2309                 strip_spaces(isodir_format);
    2310                 strip_spaces(isodir_path);
     2309                mr_strip_spaces(isodir_device);
     2310                mr_strip_spaces(isodir_format);
     2311                mr_strip_spaces(isodir_path);
    23112312                log_it("%d - BBB - isodir_path = %s", isodir_path);
    23122313                return (TRUE);
  • branches/stable/mondo/src/mondorestore/mondo-rstr-newt.h

    r1103 r1168  
    1919
    2020#include "my-stuff.h"
    21 #include "../common/mondostructures.h"
    22 #include "../common/libmondo.h"
     21#include "mr_str.h"
     22
     23#include "mondostructures.h"
     24#include "libmondo.h"
    2325#ifdef   __FreeBSD__
    2426#define  raid_device_record             vinum_volume
     
    4446extern long get_phys_size_of_drive(char *);
    4547extern bool is_this_device_mounted(char *);
    46 extern void strip_spaces(char *);
    4748extern void initialize_raidrec(struct raid_device_record *);
    4849extern int make_list_of_drives(struct mountlist_itself *,
  • branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c

    r1166 r1168  
    66#include <pthread.h>
    77#include "my-stuff.h"
    8 #include "../common/mondostructures.h"
    9 #include "../common/libmondo.h"
     8#include "mr_mem.h"
     9#include "mr_msg.h"
     10#include "mr_str.h"
     11
     12#include "mondostructures.h"
     13#include "libmondo.h"
    1014#include "mr-externs.h"
    1115//#include "mondo-restore.h"
    1216//#include "mondo-rstr-compare-EXT.h"
    1317#include "mondo-rstr-tools.h"
    14 #include "mr_mem.h"
    15 #include "mr_msg.h"
    1618
    1719extern bool g_sigpipe_caught;
     
    110112    for (fgets(incoming_ptr, MAX_STR_LEN, fin);
    111113         !feof(fin); fgets(incoming_ptr, MAX_STR_LEN, fin)) {
    112         strip_spaces(incoming_ptr);
     114        mr_strip_spaces(incoming_ptr);
    113115
    114116        if (incoming[0] == '\0') {
  • branches/stable/mondo/src/mondorestore/mr-externs.h

    r684 r1168  
    7171extern int read_header_block_from_stream(long long *, char *, int *);
    7272extern void save_filelist(struct s_node *, char *);
    73 extern void strip_spaces(char *);
    7473extern int strcmp_inc_numbers(char *, char *);
    7574extern char *slice_fname(long, long, char *, char *);
Note: See TracChangeset for help on using the changeset viewer.