diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-10-27 19:40:09 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-10-27 19:40:09 +0000 |
commit | 658e029dc59b9bce72962d343c0013802c4ddc43 (patch) | |
tree | 1aa40073529208921d680389bdb204ebac044400 /sys | |
parent | 0b17fe5054d25265bf26a4a63bde8850b66248a5 (diff) |
Make ws_get_param() return -1 on error. Fixes unhandled wsconsctl display
settings.
Found by and ok kn@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/macppc/ofw_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/ofw_machdep.c b/sys/arch/macppc/macppc/ofw_machdep.c index d91007f9d14..cfb12a3c712 100644 --- a/sys/arch/macppc/macppc/ofw_machdep.c +++ b/sys/arch/macppc/macppc/ofw_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofw_machdep.c,v 1.60 2020/10/26 22:02:38 tobhe Exp $ */ +/* $OpenBSD: ofw_machdep.c,v 1.61 2020/10/27 19:40:08 tobhe Exp $ */ /* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */ /* @@ -697,5 +697,5 @@ ofw_get_param(struct wsdisplay_param *dp) break; } - return 1; + return -1; } |