diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-04-17 18:14:23 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-04-17 18:14:23 +0000 |
commit | a469010cece3c50830a85d4db4dc9b8f5a3edcb7 (patch) | |
tree | af1e86476fb734e1e63d636415acb17ae6e7d880 /sys/arch | |
parent | 76d70edf9bfb92bc605bd47aaf5946ba98ecde47 (diff) |
fix version for some endianess-challenged compaqs; via linux
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/apm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c index eb18a6343ec..e08975ec84a 100644 --- a/sys/arch/i386/i386/apm.c +++ b/sys/arch/i386/i386/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.35 2000/02/21 17:46:16 mickey Exp $ */ +/* $OpenBSD: apm.c,v 1.36 2000/04/17 18:14:22 mickey Exp $ */ /*- * Copyright (c) 1998-2000 Michael Shalayeff. All rights reserved. @@ -663,6 +663,12 @@ apm_set_ver(self) /* stay w/ flags then */ apm_majver = APM_MAJOR(apm_flags); apm_minver = APM_MINOR(apm_flags); + + /* fix version for some endianess-challenged compaqs */ + if (!apm_majver) { + apm_majver = 1; + apm_majver = 0; + } } } printf(": Power Management spec V%d.%d", apm_majver, apm_minver); |