aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/stack/stack.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-06-08 22:41:03 +0000
committerBodo Möller <bodo@openssl.org>2000-06-08 22:41:03 +0000
commit3dd985ee2ab05b4eda53b67395d85269acad74bd (patch)
tree8f0585c143758ee75b1b696736ae1c3e9bc0af93 /crypto/stack/stack.c
parentf1d92d941e2a6c179895f0754f35292ca95f4772 (diff)
downloadopenssl-3dd985ee2ab05b4eda53b67395d85269acad74bd.tar.gz
Harmonize indentation.
Diffstat (limited to 'crypto/stack/stack.c')
-rw-r--r--crypto/stack/stack.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c
index d2c640075b..b3e32a7597 100644
--- a/crypto/stack/stack.c
+++ b/crypto/stack/stack.c
@@ -310,18 +310,18 @@ char *sk_set(STACK *st, int i, char *value)
}
void sk_sort(STACK *st)
- {
- if (!st->sorted)
{
- int (*comp_func)(const void *,const void *);
-
- /* same comment as in sk_find ... previously st->comp was declared
- * as a (void*,void*) callback type, but this made the population
- * of the callback pointer illogical - our callbacks compare
- * type** with type**, so we leave the casting until absolutely
- * necessary (ie. "now"). */
- comp_func=(int (*)(const void *,const void *))(st->comp);
- qsort(st->data,st->num,sizeof(char *), comp_func);
- st->sorted=1;
+ if (!st->sorted)
+ {
+ int (*comp_func)(const void *,const void *);
+
+ /* same comment as in sk_find ... previously st->comp was declared
+ * as a (void*,void*) callback type, but this made the population
+ * of the callback pointer illogical - our callbacks compare
+ * type** with type**, so we leave the casting until absolutely
+ * necessary (ie. "now"). */
+ comp_func=(int (*)(const void *,const void *))(st->comp);
+ qsort(st->data,st->num,sizeof(char *), comp_func);
+ st->sorted=1;
+ }
}
- }