ports/73087: [ maintainer ] sysutils/torsmo: acpitemp fix

Roman Bogorodskiy bogorodskiy at inbox.ru
Sun Oct 24 16:20:25 UTC 2004


>Number:         73087
>Category:       ports
>Synopsis:       [ maintainer ] sysutils/torsmo: acpitemp fix
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 24 16:20:24 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Roman Bogorodskiy
>Release:        FreeBSD 5.3-BETA7 i386
>Organization:
>Environment:
System: FreeBSD lame.novel.ru 5.3-BETA7 FreeBSD 5.3-BETA7 #12: Sat Oct 16 20:09:15 MSD 2004 root at lame.novel.ru:/usr/obj/usr/home/novel/current/src/sys/NOVEL i386


>Description:
	Fix acpitemp function by changing type from double to int (we get temp
	in kelvins (int) and then convert it in celsius (double)). Reported by 
	Aurel Bodenmann.

>How-To-Repeat:
>Fix:

diff -ru torsmo.orig/Makefile torsmo/Makefile
--- torsmo.orig/Makefile	Sun Oct 24 19:57:21 2004
+++ torsmo/Makefile	Sun Oct 24 20:01:36 2004
@@ -7,7 +7,7 @@
 
 PORTNAME=	torsmo
 PORTVERSION=	0.17
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
diff -ru torsmo.orig/files/freebsd.c torsmo/files/freebsd.c
--- torsmo.orig/files/freebsd.c	Sun Oct 24 19:57:21 2004
+++ torsmo/files/freebsd.c	Sun Oct 24 19:59:05 2004
@@ -295,8 +295,8 @@
 }
 
 double get_acpi_temperature(int fd) {
-	double temp;
-	
+	int temp;
+		
 	if (GETSYSCTL("hw.acpi.thermal.tz0.temperature", temp)) {
 		 (void)fprintf(stderr, "Cannot read sysctl \"hw.acpi.thermal.tz0.temperature\"\n");
 		 temp = -1;
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list