Bruce is right - ENOTTY is more appropriate than EINVAL in this case.
This commit is contained in:
parent
a29b6fccc0
commit
bcac561761
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8161
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)subr_log.c 8.1 (Berkeley) 6/10/93
|
||||
* $Id: subr_log.c,v 1.5 1994/10/02 17:35:22 phk Exp $
|
||||
* $Id: subr_log.c,v 1.6 1995/04/29 05:09:19 jkh Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -234,7 +234,7 @@ logioctl(dev, com, data, flag, p)
|
||||
break;
|
||||
|
||||
default:
|
||||
return (EINVAL);
|
||||
return (ENOTTY);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user