hosttable.c patch for SOLARIS build...
diff --git a/src/tspi/rpc/hosttable.c b/src/tspi/rpc/hosttable.c
index f3ec2eb..53fb971 100644
--- a/src/tspi/rpc/hosttable.c
+++ b/src/tspi/rpc/hosttable.c
@@ -22,7 +22,7 @@
struct host_table *ht = NULL;
TSS_RESULT
-host_table_init()
+static host_table_init()
{
ht = calloc(1, sizeof(struct host_table));
if (ht == NULL) {
@@ -36,8 +36,7 @@ host_table_init()
}
#ifdef SOLARIS
-#pragma init(_init)
-void _init(void)
+static void my_init(void)
#else
void __attribute__ ((constructor)) my_init(void)
#endif
@@ -46,7 +45,7 @@ void __attribute__ ((constructor)) my_init(void)
__tspi_obj_list_init();
}
-void
+static void
host_table_final()
{
struct host_table_entry *hte, *next = NULL;
@@ -70,8 +69,7 @@ host_table_final()
}
#ifdef SOLARIS
-#pragma fini(_fini)
-void _fini(void)
+static void my_fini(void)
#else
void __attribute__ ((destructor)) my_fini(void)
#endif
@@ -79,6 +77,11 @@ void __attribute__ ((destructor)) my_fini(void)
host_table_final();
}
-Wyllys
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech