From 9833028211de81bbeb550b48181739fc95c1ef81 Mon Sep 17 00:00:00 2001 From: pjd Date: Mon, 30 Aug 2004 09:49:59 +0000 Subject: According to module(9), when command is unrecognized, the module should return EOPNOTSUPP. --- share/examples/kld/cdev/module/cdevmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/examples/kld/cdev') diff --git a/share/examples/kld/cdev/module/cdevmod.c b/share/examples/kld/cdev/module/cdevmod.c index 0f6f3cb..7b9a453 100644 --- a/share/examples/kld/cdev/module/cdevmod.c +++ b/share/examples/kld/cdev/module/cdevmod.c @@ -134,7 +134,7 @@ cdev_load(module_t mod, int cmd, void *arg) break; /* Success*/ default: /* we only understand load/unload*/ - err = EINVAL; + err = EOPNOTSUPP; break; } -- cgit v1.1