remove a comment that shouldn't have been there any more
[openssl.git] / crypto / stack / stack.c
index d2c640075b33f844482d87518f3435db5e98f234..02857f044664bf4ee34c21a6514855f9ee1ec718 100644 (file)
@@ -109,6 +109,11 @@ err:
        return(NULL);
        }
 
+STACK *sk_new_null(void)
+       {
+       return sk_new((int (*)(const char * const *, const char * const *))0);
+       }
+
 STACK *sk_new(int (*c)(const char * const *, const char * const *))
        {
        STACK *ret;
@@ -310,18 +315,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;
+               }
        }
-    }