~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to fdisk/fdiskmaclabel.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
mac_nolabel( void )
43
43
{
44
44
    maclabel->magic = 0;
45
 
    mac_label = 0;
46
45
    partitions = 4;
47
46
    zeroize_mbr_buffer();
48
47
    return;
65
64
                        goto IS_MAC;
66
65
                        break;
67
66
                default:
68
 
                        mac_label = 0;
69
67
                        other_endian = 0;
70
68
                        return 0;
71
69
 
75
73
IS_MAC:
76
74
    other_endian = (maclabel->magic == MAC_LABEL_MAGIC_SWAPPED); // =?
77
75
    update_units();
78
 
    mac_label = 1;
 
76
    disklabel = MAC_LABEL;
79
77
    partitions= 1016; // =?
80
78
    volumes = 15;       // =?
81
79
    mac_info();
82
80
    mac_nolabel();              /* %% */
83
 
    mac_label = 1;              /* %% */
84
81
    return 1;
85
82
}
86
83