summaryrefslogtreecommitdiffstats
path: root/net/phonet/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/phonet/sysctl.c')
-rw-r--r--net/phonet/sysctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/phonet/sysctl.c b/net/phonet/sysctl.c
index 740bf209dd9..8bed7675b3f 100644
--- a/net/phonet/sysctl.c
+++ b/net/phonet/sysctl.c
@@ -50,7 +50,8 @@ static void set_local_port_range(int range[2])
void phonet_get_local_port_range(int *min, int *max)
{
- unsigned seq;
+ unsigned int seq;
+
do {
seq = read_seqbegin(&local_port_range_lock);
if (min)