aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/UTF8String.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-07-13 11:19:01 +0000
committerLev Walkin <vlm@lionet.info>2006-07-13 11:19:01 +0000
commit1eded3544e880b2a2c9ee122ace2c64710d04981 (patch)
tree4a3cb942269f507b8fde8b50bb9bc5cd4d6330be /skeletons/UTF8String.c
parent397d59d448f62adf830af96dabdae97c294a7765 (diff)
*** empty log message ***
Diffstat (limited to 'skeletons/UTF8String.c')
-rw-r--r--skeletons/UTF8String.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/skeletons/UTF8String.c b/skeletons/UTF8String.c
index 5d0334f9..85f2ccd8 100644
--- a/skeletons/UTF8String.c
+++ b/skeletons/UTF8String.c
@@ -67,30 +67,30 @@ static int32_t UTF8String_mv[7] = { 0, 0,
int
UTF8String_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_consume_bytes_f *app_errlog, void *app_key) {
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {
ssize_t len = UTF8String_length((const UTF8String_t *)sptr);
switch(len) {
case U8E_EINVAL:
- _ASN_ERRLOG(app_errlog, app_key,
+ _ASN_CTFAIL(app_key, td,
"%s: value not given", td->name);
break;
case U8E_TRUNC:
- _ASN_ERRLOG(app_errlog, app_key,
+ _ASN_CTFAIL(app_key, td,
"%s: truncated UTF-8 sequence (%s:%d)",
td->name, __FILE__, __LINE__);
break;
case U8E_ILLSTART:
- _ASN_ERRLOG(app_errlog, app_key,
+ _ASN_CTFAIL(app_key, td,
"%s: UTF-8 illegal start of encoding (%s:%d)",
td->name, __FILE__, __LINE__);
break;
case U8E_NOTCONT:
- _ASN_ERRLOG(app_errlog, app_key,
+ _ASN_CTFAIL(app_key, td,
"%s: UTF-8 not continuation (%s:%d)",
td->name, __FILE__, __LINE__);
break;
case U8E_NOTMIN:
- _ASN_ERRLOG(app_errlog, app_key,
+ _ASN_CTFAIL(app_key, td,
"%s: UTF-8 not minimal sequence (%s:%d)",
td->name, __FILE__, __LINE__);
break;