mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] : ir253_long_set_bit.diff
@ 2002-05-10 22:41 Jean Tourrilhes
  0 siblings, 0 replies; only message in thread
From: Jean Tourrilhes @ 2002-05-10 22:41 UTC (permalink / raw)
  To: Jeff Garzik, irda-users, Linux kernel mailing list

ir253_long_set_bit.diff :
-----------------------
	        <Following patch from Paul Mackerras>
	o [CORRECT] Argument of set_bit and friends should be unsigned long
		Should fix all compile warnings ;-)


diff -u -p linux/include/net/irda/irlmp.d8.h linux/include/net/irda/irlmp.h
--- linux/include/net/irda/irlmp.d8.h	Fri May  3 18:53:43 2002
+++ linux/include/net/irda/irlmp.h	Fri May  3 18:56:45 2002
@@ -100,7 +100,7 @@ struct lsap_cb {
 	irda_queue_t queue;      /* Must be first */
 	magic_t magic;
 
-	int  connected;
+	unsigned long connected;	/* set_bit used on this */
 	int  persistent;
 
 	__u8 slsap_sel;   /* Source (this) LSAP address */
diff -u -p linux/include/net/irda/irttp.d8.h linux/include/net/irda/irttp.h
--- linux/include/net/irda/irttp.d8.h	Fri May  3 18:54:03 2002
+++ linux/include/net/irda/irttp.h	Fri May  3 18:56:45 2002
@@ -139,7 +139,7 @@ struct tsap_cb {
 	__u32 tx_max_sdu_size; /* Max transmit user data size */
 
 	int close_pend;        /* Close, but disconnect_pend */
-	int disconnect_pend;   /* Disconnect, but still data to send */
+	unsigned long disconnect_pend; /* Disconnect, but still data to send */
 	struct sk_buff *disconnect_skb;
 };
 
diff -u -p linux/net/irda/irnet/irnet.d8.h linux/net/irda/irnet/irnet.h
--- linux/net/irda/irnet/irnet.d8.h	Fri May  3 18:54:31 2002
+++ linux/net/irda/irnet/irnet.h	Fri May  3 18:56:45 2002
@@ -409,8 +409,8 @@ typedef struct irnet_socket
 
   /* ------------------------ IrTTP part ------------------------ */
   /* We create a pseudo "socket" over the IrDA tranport */
-  int			ttp_open;	/* Set when IrTTP is ready */
-  int			ttp_connect;	/* Set when IrTTP is connecting */
+  unsigned long		ttp_open;	/* Set when IrTTP is ready */
+  unsigned long		ttp_connect;	/* Set when IrTTP is connecting */
   struct tsap_cb *	tsap;		/* IrTTP instance (the connection) */
 
   char			rname[NICKNAME_MAX_LEN + 1];
diff -u -p linux/net/irda/irnet/irnet_ppp.d8.c linux/net/irda/irnet/irnet_ppp.c
--- linux/net/irda/irnet/irnet_ppp.d8.c	Fri May  3 18:56:38 2002
+++ linux/net/irda/irnet/irnet_ppp.c	Fri May  3 18:56:45 2002
@@ -860,7 +860,7 @@ ppp_irnet_send(struct ppp_channel *	chan
       irda_irnet_connect(self);
 #endif /* CONNECT_IN_SEND */
 
-      DEBUG(PPP_INFO, "IrTTP not ready ! (%d-%d)\n",
+      DEBUG(PPP_INFO, "IrTTP not ready ! (%ld-%ld)\n",
 	    self->ttp_open, self->ttp_connect);
 
       /* Note : we can either drop the packet or block the packet.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-10 22:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-10 22:41 [PATCH] : ir253_long_set_bit.diff Jean Tourrilhes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®