summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2013-12-07 22:25:07 +0000
committerjhibbits <jhibbits@FreeBSD.org>2013-12-07 22:25:07 +0000
commit1f2e92c8c535dab6acd57b3669b50b68cbd1f1f0 (patch)
tree087e9c076e966181c75f8f739ba8999361227538
parent127d791c3eb087bbfd38ee604ebc3054a56f9ce9 (diff)
downloadFreeBSD-src-1f2e92c8c535dab6acd57b3669b50b68cbd1f1f0.zip
FreeBSD-src-1f2e92c8c535dab6acd57b3669b50b68cbd1f1f0.tar.gz
Make more unsigned ints signed.
Found by: clang (powerpc64) MFC after: 1 week
-rw-r--r--sys/dev/iicbus/ds1631.c2
-rw-r--r--sys/dev/iicbus/ds1775.c2
-rw-r--r--sys/powerpc/powermac/platform_powermac.c3
3 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/iicbus/ds1631.c b/sys/dev/iicbus/ds1631.c
index 51531ef..22c8ecc 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 0b1a4cb..884ac4c 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 8855d45..49f3e1a 100644
--- a/sys/powerpc/powermac/platform_powermac.c
+++ b/sys/powerpc/powermac/platform_powermac.c
@@ -219,7 +219,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));
OpenPOWER on IntegriCloud