diff options
author | greg@bucket.kroah.org <greg@bucket.kroah.org> | 2005-01-12 08:15:22 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:21:58 -0700 |
commit | aa7f11f4709798d5173d289475103cb078996f58 (patch) | |
tree | f6881e7388130f2b054fb5906c0a099156d081f3 | |
parent | 94f88ba5eebfcb45ecc99bc0c32b167204ad427a (diff) |
[PATCH] fix gcc 2.96 issue in libsysfs
-rw-r--r-- | libsysfs/dlist.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libsysfs/dlist.c b/libsysfs/dlist.c index 5f2c00be9b..c4ee324573 100644 --- a/libsysfs/dlist.c +++ b/libsysfs/dlist.c @@ -546,11 +546,14 @@ int _dlist_merge(struct dlist *listsource, struct dlist *listdest, unsigned int void dlist_sort_custom(struct dlist *list, int (*compare)(void *, void *)) { - dlist_start(list); struct dlist *listsource, *listdest, *swap; - struct dlist *templist = dlist_new(list->data_size); + struct dlist *templist; unsigned int passcount = 1; unsigned int mergecount = 1; + + dlist_start(list); + templist = dlist_new(list->data_size); + // do nothing if there isn't anything to sort listsource = list; listdest = templist; |