backlight: Reject user overrides on OpenBSD
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 15 Feb 2014 21:00:57 +0000 (21:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 15 Feb 2014 21:02:11 +0000 (21:02 +0000)
We only handle the singular wscons OpenBSD interface for backlight, so
explicitly reject any user requests for something else.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/backlight.c

index 5011cb8..70c6559 100644 (file)
@@ -108,6 +108,9 @@ int backlight_open(struct backlight *b, char *iface)
 {
        struct wsdisplay_param param;
 
+       if (iface != NULL)
+               return -1;
+
        memset(&param, 0, sizeof(param));
        param.param = WSDISPLAYIO_PARAM_BRIGHTNESS;