svn commit: r259082 - in head/sys: dev/iicbus powerpc/powermac

Justin Hibbits jhibbits at FreeBSD.org
Sat Dec 7 22:25:08 UTC 2013


Author: jhibbits
Date: Sat Dec  7 22:25:07 2013
New Revision: 259082
URL: http://svnweb.freebsd.org/changeset/base/259082

Log:
  Make more unsigned ints signed.
  
  Found by:	clang (powerpc64)
  MFC after:	1 week

Modified:
  head/sys/dev/iicbus/ds1631.c
  head/sys/dev/iicbus/ds1775.c
  head/sys/powerpc/powermac/platform_powermac.c

Modified: head/sys/dev/iicbus/ds1631.c
==============================================================================
--- head/sys/dev/iicbus/ds1631.c	Sat Dec  7 22:18:36 2013	(r259081)
+++ head/sys/dev/iicbus/ds1631.c	Sat Dec  7 22:25:07 2013	(r259082)
@@ -398,7 +398,7 @@ ds1631_sensor_sysctl(SYSCTL_HANDLER_ARGS
 	device_t dev;
 	struct ds1631_softc *sc;
 	int error;
-	unsigned int temp;
+	int temp;
 
 	dev = arg1;
 	sc = device_get_softc(dev);

Modified: head/sys/dev/iicbus/ds1775.c
==============================================================================
--- head/sys/dev/iicbus/ds1775.c	Sat Dec  7 22:18:36 2013	(r259081)
+++ head/sys/dev/iicbus/ds1775.c	Sat Dec  7 22:25:07 2013	(r259082)
@@ -257,7 +257,7 @@ ds1775_sensor_sysctl(SYSCTL_HANDLER_ARGS
 	device_t dev;
 	struct ds1775_softc *sc;
 	int error;
-	unsigned int temp;
+	int temp;
 
 	dev = arg1;
 	sc = device_get_softc(dev);

Modified: head/sys/powerpc/powermac/platform_powermac.c
==============================================================================
--- head/sys/powerpc/powermac/platform_powermac.c	Sat Dec  7 22:18:36 2013	(r259081)
+++ head/sys/powerpc/powermac/platform_powermac.c	Sat Dec  7 22:25:07 2013	(r259082)
@@ -219,7 +219,8 @@ powermac_timebase_freq(platform_t plat, 
 static int
 powermac_smp_fill_cpuref(struct cpuref *cpuref, phandle_t cpu)
 {
-	cell_t cpuid, res;
+	cell_t cpuid;
+	int res;
 
 	cpuref->cr_hwref = cpu;
 	res = OF_getprop(cpu, "reg", &cpuid, sizeof(cpuid));


More information about the svn-src-head mailing list