From: mickey Date: Mon, 17 Apr 2000 18:14:22 +0000 (+0000) Subject: fix version for some endianess-challenged compaqs; via linux X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3bf4a18cc72f4402c545b729df75a250da01dfbf;p=openbsd fix version for some endianess-challenged compaqs; via linux --- 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);