| 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> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] (4/5) irlap_open should take const string, Stephen Hemminger |
|---|---|
| Next by Date: | Re: [PATCH] (1/5) get rid of useless hashbin in irtty, Jean Tourrilhes |
| Previous by Thread: | [PATCH] (4/5) irlap_open should take const string, Stephen Hemminger |
| Next by Thread: | Re: [PATCH] (5/5) irlap hashbin can be private, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |