Move error functions from krb5 to base
[metze/heimdal/wip.git] / lib / krb5 / add_et_list.c
index 082014e107a7b164c0c6abb0bd2562c60f19436f..1a289eeaec1ce1a8a87d56f3bc01f563720a6419 100644 (file)
@@ -48,9 +48,7 @@
  */
 
 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
-krb5_add_et_list (krb5_context context,
-                 void (*func)(struct et_list **))
+krb5_add_et_list(krb5_context context, void (*func)(struct et_list **))
 {
-    (*func)(&context->et_list);
-    return 0;
+    return heim_add_et_list(context->hcontext, func);
 }