aboutsummaryrefslogtreecommitdiff
path: root/sys/geom
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2013-12-07 19:55:34 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2013-12-07 19:55:34 +0000
commit8991c5409153aa38dddd7a96c04f4e6b47dc39c9 (patch)
tree22fe4457503d19333ab829840d69be4d1adfec90 /sys/geom
parent1d75f17448def07137de5fc02a0145b753426a7f (diff)
downloadsrc-8991c5409153aa38dddd7a96c04f4e6b47dc39c9.tar.gz
src-8991c5409153aa38dddd7a96c04f4e6b47dc39c9.zip
Fix some integer signs. These unsigned integers should all be signed.
Found by: clang (powerpc64)
Notes
Notes: svn path=/head/; revision=259080
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/cache/g_cache.c2
-rw-r--r--sys/geom/journal/g_journal.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/cache/g_cache.c b/sys/geom/cache/g_cache.c
index ba701acff181..28df84182f6f 100644
--- a/sys/geom/cache/g_cache.c
+++ b/sys/geom/cache/g_cache.c
@@ -67,7 +67,7 @@ static u_int g_cache_used_hi = 20;
static int
sysctl_handle_pct(SYSCTL_HANDLER_ARGS)
{
- u_int val = *(u_int *)arg1;
+ int val;
int error;
error = sysctl_handle_int(oidp, &val, 0, req);
diff --git a/sys/geom/journal/g_journal.c b/sys/geom/journal/g_journal.c
index 390847864812..da49593e2dcf 100644
--- a/sys/geom/journal/g_journal.c
+++ b/sys/geom/journal/g_journal.c
@@ -168,7 +168,7 @@ SYSCTL_UINT(_kern_geom_journal_cache, OID_AUTO, divisor, CTLFLAG_RDTUN,
static int
g_journal_cache_switch_sysctl(SYSCTL_HANDLER_ARGS)
{
- u_int cswitch;
+ int cswitch;
int error;
cswitch = g_journal_cache_switch;