Changeset 1376


Ignore:
Timestamp:
Apr 30, 2007, 11:21:48 AM (12 years ago)
Author:
bruno
Message:

compilation fixes for stable

File:
1 edited

Legend:

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

    r1326 r1376  
    838838        if (bkpinfo->backup_media_type == cdstream) {
    839839            strcpy(bkpinfo->media_device, "/dev/cdrom");
    840             bkpinfo->media_size[0] = 1999 * 1024;
    841             bkpinfo->media_size[1] = 650;   /* good guess */
     840            bkpinfo->media_size = (long)1999 * 1024;
     841            bkpinfo->media_size = (long)650;    /* good guess */
    842842        } else if (bkpinfo->backup_media_type == tape
    843843                   || bkpinfo->backup_media_type == udev) {
     
    847847            strcpy(bkpinfo->media_device, value);
    848848            read_cfg_var(cfg_file, "media-size", value);
    849             bkpinfo->media_size[1] = atol(value);
     849            bkpinfo->media_size = atol(value);
    850850            mr_msg(2, "Backup medium is TAPE --- dev=%s",
    851851                    bkpinfo->media_device);
    852852        } else {
    853853            strcpy(bkpinfo->media_device, "/dev/cdrom");    /* we don't really need this var */
    854             bkpinfo->media_size[0] = 1999 * 1024;   /* 650, probably, but we don't need this var anyway */
    855             bkpinfo->media_size[1] = 1999 * 1024;   /* 650, probably, but we don't need this var anyway */
     854            bkpinfo->media_size = (long)1999 * 1024;    /* 650, probably, but we don't need this var anyway */
     855            bkpinfo->media_size = (long)1999 * 1024;    /* 650, probably, but we don't need this var anyway */
    856856            mr_msg(2, "Backup medium is CD-R[W]");
    857857        }
     
    14771477        mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));
    14781478        log_to_screen
    1479             (_("GRUB ran w/error(s). See %s for more info.", MONDO_LOGFILE));
     1479            (_("GRUB ran w/error(s). See %s for more info."), MONDO_LOGFILE);
    14801480        mr_msg(1, "Type:-");
    14811481        mr_msg(1, "    mount-me");
     
    17451745        mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));
    17461746        log_to_screen
    1747             (_("MBR+fstab processed w/error(s). See %s for more info.", MONDO_LOGFILE));
     1747            (_("MBR+fstab processed w/error(s). See %s for more info."), MONDO_LOGFILE);
    17481748    } else {
    17491749        mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
Note: See TracChangeset for help on using the changeset viewer.