[Parted-commits] GNU Parted Official Repository: Changes to 'master'

Otavio Salvador otavio at alioth.debian.org
Fri Nov 2 14:07:12 UTC 2007


 libparted/cs/natmath.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 38bba92ce93152c111814ab27c62656ef1bff0be
Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Fri Nov 2 12:14:36 2007 -0200

    libparted/cs/natmath.c: remove inline since it's not supported by GNU99 standard

diff --git a/libparted/cs/natmath.c b/libparted/cs/natmath.c
index b8b4a95..fd376cd 100644
--- a/libparted/cs/natmath.c
+++ b/libparted/cs/natmath.c
@@ -74,16 +74,16 @@ ped_round_down_to (PedSector sector, PedSector grain_size)
 	return sector - abs_mod (sector, grain_size);
 }
 
-inline PedSector
+PedSector
 ped_div_round_up (PedSector numerator, PedSector divisor)
 {
-                return (numerator + divisor - 1) / divisor;
+	return (numerator + divisor - 1) / divisor;
 }
 
-inline PedSector
+PedSector
 ped_div_round_to_nearest (PedSector numerator, PedSector divisor)
 {
-                return (numerator + divisor/2) / divisor;
+	return (numerator + divisor/2) / divisor;
 }
 
 /* Rounds a number up to the closest number that is a multiple of



More information about the Parted-commits mailing list