netdev
[Top] [All Lists]

[PATCH] (5/5) irlap hashbin can be private

To: Jean Tourrilhes <jt@xxxxxxxxxx>
Subject: [PATCH] (5/5) irlap hashbin can be private
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Fri, 15 Aug 2003 15:57:29 -0700
Cc: irda-users@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
Organization: Open Source Development Lab
Sender: netdev-bounce@xxxxxxxxxxx
irlap hashbin is only used in one file, so make it private not global.

diff -Nru a/include/net/irda/irlap.h b/include/net/irda/irlap.h
--- a/include/net/irda/irlap.h  Fri Aug 15 13:52:21 2003
+++ b/include/net/irda/irlap.h  Fri Aug 15 13:52:21 2003
@@ -208,8 +208,6 @@
        int    next_bofs;     /* Negotiated extra BOFs after next frame */
 };
 
-extern hashbin_t *irlap;
-
 /* 
  *  Function prototypes 
  */
diff -Nru a/net/irda/irlap.c b/net/irda/irlap.c
--- a/net/irda/irlap.c  Fri Aug 15 13:52:21 2003
+++ b/net/irda/irlap.c  Fri Aug 15 13:52:21 2003
@@ -48,7 +48,7 @@
 #include <net/irda/timer.h>
 #include <net/irda/qos.h>
 
-hashbin_t *irlap = NULL;
+static hashbin_t *irlap = NULL;
 int sysctl_slot_timeout = SLOT_TIMEOUT * 1000 / HZ;
 
 /* This is the delay of missed pf period before generating an event

<Prev in Thread] Current Thread [Next in Thread>