~ubuntu-branches/ubuntu/vivid/parted/vivid

« back to all changes in this revision

Viewing changes to libparted/labels/aix.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-07-21 10:23:16 UTC
  • mfrom: (7.2.32 sid)
  • Revision ID: package-import@ubuntu.com-20140721102316-jsyv3yzmbo8vlde5
Tags: 3.1-3
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- Mode: c; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2
2
 
3
3
    libparted - a library for manipulating disk partitions
4
 
    Copyright (C) 2000-2001, 2007-2010 Free Software Foundation, Inc.
 
4
    Copyright (C) 2000-2001, 2007-2012 Free Software Foundation, Inc.
5
5
 
6
6
    This program is free software; you can redistribute it and/or modify
7
7
    it under the terms of the GNU General Public License as published by
54
54
static int
55
55
aix_probe (const PedDevice *dev)
56
56
{
57
 
        PED_ASSERT (dev != NULL, return 0);
 
57
        PED_ASSERT (dev != NULL);
58
58
 
59
59
        void *label;
60
60
        if (!ptt_read_sector (dev, 0, &label))
142
142
static void
143
143
aix_partition_destroy (PedPartition* part)
144
144
{
145
 
        PED_ASSERT (part != NULL, return);
 
145
        PED_ASSERT (part != NULL);
146
146
 
147
147
        _ped_partition_free (part);
148
148
}
167
167
        return 0;
168
168
}
169
169
 
170
 
static int
 
170
static int _GL_ATTRIBUTE_CONST
171
171
aix_partition_get_flag (const PedPartition* part, PedPartitionFlag flag)
172
172
{
173
173
        return 0;
195
195
        return true;
196
196
}
197
197
 
198
 
static int
 
198
static int _GL_ATTRIBUTE_PURE
199
199
aix_partition_align (PedPartition* part, const PedConstraint* constraint)
200
200
{
201
 
        PED_ASSERT (part != NULL, return 0);
 
201
        PED_ASSERT (part != NULL);
202
202
 
203
203
        return 1;
204
204
}
205
205
 
206
 
static int
 
206
static int _GL_ATTRIBUTE_PURE
207
207
aix_partition_enumerate (PedPartition* part)
208
208
{
209
209
        return 1;
210
210
}
211
211
 
212
 
static int
 
212
static int _GL_ATTRIBUTE_PURE
213
213
aix_alloc_metadata (PedDisk* disk)
214
214
{
215
215
        return 1;