Commit 4bf96b9b authored by Lev Walkin's avatar Lev Walkin

no errno

parent 0bcb49d0
...@@ -678,6 +678,12 @@ data_decode_from_file(asn_TYPE_descriptor_t *pduType, FILE *file, const char *na ...@@ -678,6 +678,12 @@ data_decode_from_file(asn_TYPE_descriptor_t *pduType, FILE *file, const char *na
(rval.code == RC_WMORE) (rval.code == RC_WMORE)
? "Unexpected end of input" ? "Unexpected end of input"
: "Input processing error"); : "Input processing error");
#ifndef ENOMSG
#define ENOMSG EINVAL
#endif
#ifndef EBADMSG
#define EBADMSG EINVAL
#endif
errno = (rval.code == RC_WMORE) ? ENOMSG : EBADMSG; errno = (rval.code == RC_WMORE) ? ENOMSG : EBADMSG;
} else { } else {
/* Got EOF after a few successful PDUs */ /* Got EOF after a few successful PDUs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment