From 56c7fb74db08f3792c8dc283b914940745a16057 Mon Sep 17 00:00:00 2001 From: jhibbits Date: Wed, 15 Jan 2014 05:52:06 +0000 Subject: [PATCH] MFC r259082 Make some unsigned ints signed. Found by: clang (powerpc64) git-svn-id: svn://svn.freebsd.org/base/stable/10@260673 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/iicbus/ds1631.c | 2 +- sys/dev/iicbus/ds1775.c | 2 +- sys/powerpc/powermac/platform_powermac.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/iicbus/ds1631.c b/sys/dev/iicbus/ds1631.c index 51531ef8d..22c8eccc7 100644 --- a/sys/dev/iicbus/ds1631.c +++ b/sys/dev/iicbus/ds1631.c @@ -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); diff --git a/sys/dev/iicbus/ds1775.c b/sys/dev/iicbus/ds1775.c index 0b1a4cb44..884ac4cc8 100644 --- a/sys/dev/iicbus/ds1775.c +++ b/sys/dev/iicbus/ds1775.c @@ -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); diff --git a/sys/powerpc/powermac/platform_powermac.c b/sys/powerpc/powermac/platform_powermac.c index 1954ae9f4..cddc8830f 100644 --- a/sys/powerpc/powermac/platform_powermac.c +++ b/sys/powerpc/powermac/platform_powermac.c @@ -169,7 +169,8 @@ powermac_timebase_freq(platform_t plat, struct cpuref *cpuref) 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)); -- 2.45.0