[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: what i need is a little attention-RE [linux-lvm] SoftRaid and LVM Jean-Eric Cuendet



some ideas whom should i write to and what else should i try
i've already written to the developers of e2fsprogs and to Hans Reiser
but i still don't have a reply( it was 2-3 days ago) and mr Hans Reiser wonts $25 for looking at a problem
i'll write them again




Jean-Eric Cuendet wrote:

and one more question about the min-max
i don't speak "C" can you tell me how to do it with pre
linux-2.4.9patches wich i wont to aply to linux-2.4.10pre2 and they are giving me problems with min-max definition



The min/max functions are simple functions that return the min/max of two numbers. Ex: min(3,4) return 3 Now, Linus has added a type to those functions in 2.4.8 (I think): Ex: min(int, 3, 4) = 3 Or: min(float, -6.45, 4.5) = -6.45

So, either you change the call from:
min(a, b) to min(int,a,b)
Or you add the provided replacement functions:
#define min(a,b) (((a)<(b))?(a):(b)) #define max(a,b) (((a)>(b))?(a):(b)) At the *beginning* of the file (before anything else).


Note that these are not real functions but just macros. That's why it's
so simple (just add them and forget).

Bye
-jec


_______________________________________________ linux-lvm mailing list linux-lvm sistina com http://lists.sistina.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]