From 7138d711b58f9385731aeaa153763c16dbe2e2c8 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 11 Mar 2013 01:01:34 +0100 Subject: [PATCH] remove hpux specific code --- src/common/outbound.c | 8 -------- src/common/plugin.c | 5 ----- src/fe-gtk/plugingui.c | 4 ---- 3 files changed, 17 deletions(-) diff --git a/src/common/outbound.c b/src/common/outbound.c index 341ee7a..52c96c1 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -2430,11 +2430,7 @@ cmd_load (struct session *sess, char *tbuf, char *word[], char *word_eol[]) #ifdef USE_PLUGIN len = strlen (word[2]); -#if defined(__hpux) - if (len > 3 && strcasecmp (".sl", word[2] + len - 3) == 0) -#else if (len > 3 && strcasecmp (".so", word[2] + len - 3) == 0) -#endif { arg = NULL; if (word_eol[3][0]) @@ -3175,11 +3171,7 @@ cmd_unload (struct session *sess, char *tbuf, char *word[], char *word_eol[]) int len, by_file = FALSE; len = strlen (word[2]); -#if defined(__hpux) - if (len > 3 && strcasecmp (word[2] + len - 3, ".sl") == 0) -#else if (len > 3 && strcasecmp (word[2] + len - 3, ".so") == 0) -#endif by_file = TRUE; switch (plugin_kill (word[2], by_file)) diff --git a/src/common/plugin.c b/src/common/plugin.c index 02b7302..9ef679b 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -418,13 +418,8 @@ void plugin_auto_load (session *sess) { ps = sess; -#if defined(__hpux) - for_files (XCHATLIBDIR"/plugins", "*.sl", plugin_auto_load_cb); - for_files (get_xdir_fs (), "*.sl", plugin_auto_load_cb); -#else for_files (XCHATLIBDIR"/plugins", "*.so", plugin_auto_load_cb); for_files (get_xdir_fs (), "*.so", plugin_auto_load_cb); -#endif } #endif diff --git a/src/fe-gtk/plugingui.c b/src/fe-gtk/plugingui.c index b6e1a5b..8fb6ee3 100644 --- a/src/fe-gtk/plugingui.c +++ b/src/fe-gtk/plugingui.c @@ -170,11 +170,7 @@ plugingui_unload (GtkWidget * wid, gpointer unused) return; len = strlen (file); -#if defined(__hpux) - if (len > 3 && strcasecmp (file + len - 3, ".sl") == 0) -#else if (len > 3 && strcasecmp (file + len - 3, ".so") == 0) -#endif { if (plugin_kill (modname, FALSE) == 2) fe_message (_("That plugin is refusing to unload.\n"), FE_MSG_ERROR); -- 2.11.4.GIT