Zan Lynx <[EMAIL PROTECTED]> wrote:
>
> And you get in the habit of using 0 instead of NULL and before you know
> it you've used it in a variable argument list for a GTK library call on
> an AMD64 system and corrupted the stack. :-)
Using NULL without a cast is equally broken in a variadic contex
On Tue, 2005-02-01 at 14:22 -0800, Randy.Dunlap wrote:
> Chris Wedgwood wrote:
> > On Mon, Jan 31, 2005 at 01:34:59AM -0600, Matt Mackall wrote:
> >
> >
> >>+#define qsort xfs_sort
> >>+static inline void xfs_sort(void *a, size_t n, size_t s,
> >>+ int (*cmp)(const void *,const
On Tue, Feb 01, 2005 at 02:29:15PM -0800, Chris Wedgwood wrote:
> On Mon, Jan 31, 2005 at 01:34:59AM -0600, Matt Mackall wrote:
>
> > +#define qsort xfs_sort
> > +static inline void xfs_sort(void *a, size_t n, size_t s,
> > + int (*cmp)(const void *,const void *))
> > +{
> > +
Chris Wedgwood wrote:
On Mon, Jan 31, 2005 at 01:34:59AM -0600, Matt Mackall wrote:
+#define qsort xfs_sort
+static inline void xfs_sort(void *a, size_t n, size_t s,
+ int (*cmp)(const void *,const void *))
+{
+ sort(a, n, s, cmp, 0);
+}
+
why not just:
#define qsort(a
On Mon, Jan 31, 2005 at 01:34:59AM -0600, Matt Mackall wrote:
> +#define qsort xfs_sort
> +static inline void xfs_sort(void *a, size_t n, size_t s,
> + int (*cmp)(const void *,const void *))
> +{
> + sort(a, n, s, cmp, 0);
> +}
> +
why not just:
#define qsort(a, n, s, cmp
Point XFS qsort at lib/sort in a way that makes it happy.
Signed-off-by: Matt Mackall <[EMAIL PROTECTED]>
Index: mm2/fs/xfs/linux-2.6/xfs_linux.h
===
--- mm2.orig/fs/xfs/linux-2.6/xfs_linux.h 2005-01-30 14:22:38.0
-080
6 matches
Mail list logo