mirror of https://gerrit.osmocom.org/asn1c
no errno
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1217 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
c8d9052e99
commit
4450c35068
|
@ -678,6 +678,12 @@ data_decode_from_file(asn_TYPE_descriptor_t *pduType, FILE *file, const char *na
|
|||
(rval.code == RC_WMORE)
|
||||
? "Unexpected end of input"
|
||||
: "Input processing error");
|
||||
#ifndef ENOMSG
|
||||
#define ENOMSG EINVAL
|
||||
#endif
|
||||
#ifndef EBADMSG
|
||||
#define EBADMSG EINVAL
|
||||
#endif
|
||||
errno = (rval.code == RC_WMORE) ? ENOMSG : EBADMSG;
|
||||
} else {
|
||||
/* Got EOF after a few successful PDUs */
|
||||
|
|
Loading…
Reference in New Issue