patch-1.3.60 linux/drivers/net/slhc.c
Next file: linux/drivers/net/slip.c
Previous file: linux/drivers/net/ppp.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Wed Feb 7 08:55:37 1996
- Orig file:
v1.3.59/linux/drivers/net/slhc.c
- Orig date:
Tue Jan 23 21:15:42 1996
diff -u --recursive --new-file v1.3.59/linux/drivers/net/slhc.c linux/drivers/net/slhc.c
@@ -91,7 +91,6 @@
static unsigned char * put16(unsigned char *cp, unsigned short x);
static unsigned short pull16(unsigned char **cpp);
static void export_slhc_syms(void);
-static has_exported = 0;
/* Initialize compression data structure
* slots must be in range 0 to 255 (zero meaning no compression)
@@ -103,9 +102,6 @@
register struct cstate *ts;
struct slcompress *comp;
- if (!has_exported)
- export_slhc_syms();
-
comp = (struct slcompress *)kmalloc(sizeof(struct slcompress),
GFP_KERNEL);
if (! comp)
@@ -748,7 +744,6 @@
static void export_slhc_syms(void)
{
register_symtab(&slhc_syms);
- has_exported = 1;
}
#ifdef MODULE
@@ -764,5 +759,11 @@
{
return;
}
-#endif /* MODULE */
+#else /* MODULE */
+
+void slhc_install(void)
+{
+ export_slhc_syms();
+}
+#endif
#endif /* CONFIG_INET */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this