avoid cast
[oweals/openssl.git] / crypto / ex_data.c
index a60d58e81fa4c4f066b9fd2f93d094d05dc8c543..176574766b838f893c019e0e46f4a29848889db7 100644 (file)
@@ -97,7 +97,7 @@ int CRYPTO_get_ex_new_index(int idx, STACK **skp, long argl, char *argp,
                        goto err;
                        }
                }
-       sk_value(*skp,idx)=(char *)a;
+       sk_set(*skp,idx, (char *)a);
        ret=idx;
 err:
        MemCheck_on();
@@ -127,7 +127,7 @@ int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, char *val)
                        }
                i++;
                }
-       sk_value(ad->sk,idx)=val;
+       sk_set(ad->sk,idx,val);
        return(1);
        }
 
@@ -141,7 +141,7 @@ char *CRYPTO_get_ex_data(CRYPTO_EX_DATA *ad, int idx)
                return(sk_value(ad->sk,idx));
        }
 
-/* The callback is called with the 'object', which is the origional data object
+/* The callback is called with the 'object', which is the original data object
  * being duplicated, a pointer to the
  * 'new' object to be inserted, the index, and the argi/argp
  */