diff options
-rw-r--r-- | debug/clearfat/clearfat.c | 2 | ||||
-rw-r--r-- | libparted/cs/natmath.c | 7 | ||||
-rw-r--r-- | libparted/timer.c | 4 | ||||
-rw-r--r-- | libparted/unit.c | 4 | ||||
-rw-r--r-- | partprobe/partprobe.c | 4 |
5 files changed, 9 insertions, 12 deletions
diff --git a/debug/clearfat/clearfat.c b/debug/clearfat/clearfat.c index 69bc357..727dca9 100644 --- a/debug/clearfat/clearfat.c +++ b/debug/clearfat/clearfat.c @@ -55,7 +55,7 @@ #define AUTHORS \ "<http://parted.alioth.debian.org/cgi-bin/trac.cgi/browser/AUTHORS>" -void +static void usage (int status) { if (status != EXIT_SUCCESS) diff --git a/libparted/cs/natmath.c b/libparted/cs/natmath.c index 2708dbc..24ed818 100644 --- a/libparted/cs/natmath.c +++ b/libparted/cs/natmath.c @@ -1,6 +1,6 @@ /* libparted - a library for manipulating disk partitions - Copyright (C) 2000, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 2000, 2007, 2008, 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 @@ -56,7 +56,7 @@ const PedAlignment* ped_alignment_none = NULL; * is all about adding or subtracting N, and we like our remainders * to be between 0 and N - 1. */ -PedSector +static PedSector abs_mod (PedSector a, PedSector b) { if (a < 0) @@ -196,7 +196,7 @@ ped_alignment_duplicate (const PedAlignment* align) * gcd = greatest common divisor of a and b * gcd = x*a + y*b */ -EuclidTriple +static EuclidTriple extended_euclid (int a, int b) { EuclidTriple result; @@ -479,4 +479,3 @@ ped_alignment_is_aligned (const PedAlignment* align, const PedGeometry* geom, /** * @} */ - diff --git a/libparted/timer.c b/libparted/timer.c index caa09fd..593952a 100644 --- a/libparted/timer.c +++ b/libparted/timer.c @@ -1,6 +1,6 @@ /* libparted - a library for manipulating disk partitions - Copyright (C) 2001, 2007 Free Software Foundation, Inc. + Copyright (C) 2001, 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 @@ -46,8 +46,6 @@ #include <parted/parted.h> #include <parted/debug.h> -#define PED_TIMER_START_DELAY 2 - typedef struct { PedTimer* parent; float nest_frac; diff --git a/libparted/unit.c b/libparted/unit.c index 66bf571..2cc1169 100644 --- a/libparted/unit.c +++ b/libparted/unit.c @@ -1,6 +1,6 @@ /* libparted - a library for manipulating disk partitions - Copyright (C) 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 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 @@ -237,7 +237,7 @@ ped_unit_format_custom_byte (const PedDevice* dev, PedSector byte, PedUnit unit) /* but 101.5 has to be rounded to 102... so we multiply by 1+E. */ /* This just divide by 2 the natural IEEE754 extended precision */ /* and won't cause any trouble before 1000 TB */ - d = ((double)byte / (double)ped_unit_get_size (dev, unit)) + d = ((double)byte / ped_unit_get_size (dev, unit)) * (1. + DBL_EPSILON); w = d + ( (d < 10. ) ? 0.005 : (d < 100.) ? 0.05 : diff --git a/partprobe/partprobe.c b/partprobe/partprobe.c index 75f7399..70cab96 100644 --- a/partprobe/partprobe.c +++ b/partprobe/partprobe.c @@ -1,6 +1,6 @@ /* partprobe - informs the OS kernel of partition layout - Copyright (C) 2001, 2002, 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 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 @@ -130,7 +130,7 @@ error: return 0; } -void +static void usage (int status) { if (status != EXIT_SUCCESS) |