portability


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@97 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/BIT_STRING.c b/skeletons/BIT_STRING.c
index ef5bd0a..7e576a1 100644
--- a/skeletons/BIT_STRING.c
+++ b/skeletons/BIT_STRING.c
@@ -37,16 +37,19 @@
 	if(st && st->buf) {
 		if(st->size) {
 			if(st->size == 1 && st->buf[0] != 0) {
-				_ASN_ERRLOG("%s: invalid padding byte",
+				_ASN_ERRLOG(app_errlog, app_key,
+					"%s: invalid padding byte",
 					td->name);
 				return -1;
 			}
 		} else {
-			_ASN_ERRLOG("%s: no padding byte", td->name);
+			_ASN_ERRLOG(app_errlog, app_key,
+				"%s: no padding byte", td->name);
 			return -1;
 		}
 	} else {
-		_ASN_ERRLOG("%s: value not given", td->name);
+		_ASN_ERRLOG(app_errlog, app_key,
+			"%s: value not given", td->name);
 		return -1;
 	}