summaryrefslogtreecommitdiff
path: root/libparted/labels/mac.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-03-05 11:42:45 +0100
committerJim Meyering <meyering@redhat.com>2009-03-05 15:58:15 +0100
commita702d42f173c401510b7c1a65e8e2889c7e4894e (patch)
tree17ef983abb77eff0125e8f16337befe080b7b1d3 /libparted/labels/mac.c
parent45668ed23c6712533e2f96603db49eb1280a2f1a (diff)
downloadparted-a702d42f173c401510b7c1a65e8e2889c7e4894e.tar.gz
rename all "support" parameters; avoid new compiler warnings
Change each occurrence like this (which evokes a warning from gcc): - return *supported = MAX_TOTAL_PART; to this: + *max_n = MAX_TOTAL_PART; + return true; I did it mostly mechanically: cd libparted/labels && grep -l 'return .supported = ' *.c|xargs perl -ni \ -e '$m=/^\treturn \*supported( = .*;)/;' \ -e 'print $m ? "\t*max_n$1\n\treturn true;\n" : $_' git grep -l 'int\* supported'|xargs perl -pi -e 's/int\* supported/int *max_n/' That got all but aix.c, which used different spacing: "int *supported", which I changed manually. Then I updated all copyright dates.
Diffstat (limited to 'libparted/labels/mac.c')
-rw-r--r--libparted/labels/mac.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libparted/labels/mac.c b/libparted/labels/mac.c
index db22aa8..e89dc20 100644
--- a/libparted/labels/mac.c
+++ b/libparted/labels/mac.c
@@ -1,6 +1,6 @@
/*
libparted - a library for manipulating disk partitions
- Copyright (C) 2000, 2002, 2004, 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2002, 2004, 2007-2009 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -1565,9 +1565,10 @@ mac_get_max_primary_partition_count (const PedDisk* disk)
}
static bool
-mac_get_max_supported_partition_count (const PedDisk* disk, int* supported)
+mac_get_max_supported_partition_count (const PedDisk* disk, int *max_n)
{
- return *supported = 65536;
+ *max_n = 65536;
+ return true;
}
static PedDiskOps mac_disk_ops = {