Skip to content

Commit

Permalink
mISDN: consistently define 'debug' as '*u_int'
Browse files Browse the repository at this point in the history
Impact: change data type for variable 'debug' from *int to *u_int,
same for the argument type of mISDN_inittimer

In "core.h" mISDN_inittimer is declared with the argument type "*u_int", make
the definition in "timerdev.c" match this.

This fixes also this warnings:

  drivers/isdn/mISDN/layer1.c:391:8: warning: incorrect type in assignment (different signedness)
  drivers/isdn/mISDN/layer1.c:391:8:    expected int *static [toplevel] debug
  drivers/isdn/mISDN/layer1.c:391:8:    got unsigned int [usertype] *deb
  drivers/isdn/mISDN/layer2.c:2200:8: warning: incorrect type in assignment (different signedness)
  drivers/isdn/mISDN/layer2.c:2200:8:    expected int *static [toplevel] debug
  drivers/isdn/mISDN/layer2.c:2200:8:    got unsigned int [usertype] *deb
  drivers/isdn/mISDN/socket.c:769:8: warning: incorrect type in assignment (different signedness)
  drivers/isdn/mISDN/socket.c:769:8:    expected int *static [toplevel] debug
  drivers/isdn/mISDN/socket.c:769:8:    got unsigned int [usertype] *deb

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Acked-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hannes Eder authored and David S. Miller committed Dec 13, 2008
1 parent bcf9174 commit dfa96ec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/isdn/mISDN/layer1.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "layer1.h"
#include "fsm.h"

static int *debug;
static u_int *debug;

struct layer1 {
u_long Flags;
Expand Down
2 changes: 1 addition & 1 deletion drivers/isdn/mISDN/layer2.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "fsm.h"
#include "layer2.h"

static int *debug;
static u_int *debug;

static
struct Fsm l2fsm = {NULL, 0, 0, NULL, NULL};
Expand Down
2 changes: 1 addition & 1 deletion drivers/isdn/mISDN/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <linux/mISDNif.h>
#include "core.h"

static int *debug;
static u_int *debug;

static struct proto mISDN_proto = {
.name = "misdn",
Expand Down
4 changes: 2 additions & 2 deletions drivers/isdn/mISDN/timerdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/module.h>
#include <linux/mISDNif.h>

static int *debug;
static u_int *debug;


struct mISDNtimerdev {
Expand Down Expand Up @@ -274,7 +274,7 @@ static struct miscdevice mISDNtimer = {
};

int
mISDN_inittimer(int *deb)
mISDN_inittimer(u_int *deb)
{
int err;

Expand Down

0 comments on commit dfa96ec

Please sign in to comment.