Skip to contentSkip to conversation

IRDA: Fix global type conflicts in net/irda/irsysctl.c

PATCH Andi Kleen 2 participants 2 messages Sep 16, 2011

Subsystems (2)
lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

The externs here didn't agree with the declarations in qos.c.

Better would be probably to move this into a header, but since it's common practice to have naked externs with sysctls I left it for now.

net/irda/irsysctl.c +3 -3
index d0b70da..be22ad2 100644
@@ -40,9 +40,9 @@ extern int  sysctl_slot_timeout;
 extern int  sysctl_fast_poll_increase;
 extern char sysctl_devname[];
 extern int  sysctl_max_baud_rate;
-extern int  sysctl_min_tx_turn_time;
-extern int  sysctl_max_tx_data_size;
-extern int  sysctl_max_tx_window;
+extern unsigned  sysctl_min_tx_turn_time;
+extern unsigned  sysctl_max_tx_data_size;
+extern unsigned  sysctl_max_tx_window;
 extern int  sysctl_max_noreply_time;
 extern int  sysctl_warn_noreply_time;
 extern int  sysctl_lap_keepalive_time;
Signature · 1 line
[email protected] -- Speaking for myself only
maintainer
#1 lore raw

Please use "unsigned int" rather than plain "unsigned", and yes that means you might have to fix up the other instances likewise.