mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Set errno to EFTYPE instead of EINVAL to be more consistent with the
rest of code. MFC after: 1 month
This commit is contained in:
parent
ffb6607984
commit
216f72f141
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326185
|
@ -281,7 +281,7 @@ zread(void *cookie, char *rbp, int num)
|
|||
if (zs->u.r.zs_code > zs->zs_free_ent ||
|
||||
zs->u.r.zs_oldcode == -1) {
|
||||
/* Bad stream. */
|
||||
errno = EINVAL;
|
||||
errno = EFTYPE;
|
||||
return (-1);
|
||||
}
|
||||
*zs->u.r.zs_stackp++ = zs->u.r.zs_finchar;
|
||||
|
|
Loading…
Reference in a new issue