projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd3063c
)
Fix a C99ism
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 19 Mar 2012 17:26:19 +0000
(13:26 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 19 Mar 2012 17:26:19 +0000
(13:26 -0400)
glib/gqsort.c
patch
|
blob
|
history
diff --git
a/glib/gqsort.c
b/glib/gqsort.c
index
6e1b225
..
b7ad041
100644
(file)
--- a/
glib/gqsort.c
+++ b/
glib/gqsort.c
@@
-71,6
+71,10
@@
msort_with_tmp (const struct msort_param *p, void *b, size_t n)
{
char *b1, *b2;
size_t n1, n2;
+ char *tmp = p->t;
+ const size_t s = p->s;
+ GCompareDataFunc cmp = p->cmp;
+ void *arg = p->arg;
if (n <= 1)
return;
@@
-83,10
+87,6
@@
msort_with_tmp (const struct msort_param *p, void *b, size_t n)
msort_with_tmp (p, b1, n1);
msort_with_tmp (p, b2, n2);
- char *tmp = p->t;
- const size_t s = p->s;
- GCompareDataFunc cmp = p->cmp;
- void *arg = p->arg;
switch (p->var)
{
case 0: