portability


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@97 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/constr_CHOICE.c b/skeletons/constr_CHOICE.c
index 23303f1..a63d6fb 100644
--- a/skeletons/constr_CHOICE.c
+++ b/skeletons/constr_CHOICE.c
@@ -480,7 +480,8 @@
 	int present;
 
 	if(!sptr) {
-		_ASN_ERRLOG("%s: value not given", td->name);
+		_ASN_ERRLOG(app_errlog, app_key,
+			"%s: value not given", td->name);
 		return -1;
 	}
 
@@ -502,7 +503,8 @@
 		return elm->type->check_constraints(elm->type, memb_ptr,
 				app_errlog, app_key);
 	} else {
-		_ASN_ERRLOG("%s: no CHOICE element given", td->name);
+		_ASN_ERRLOG(app_errlog, app_key,
+			"%s: no CHOICE element given", td->name);
 		return -1;
 	}
 }