summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-13 20:15:32 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-13 20:15:32 +0000
commit7c7ba90e380488658737436e409c6b8aa019b35d (patch)
tree8aeb5cc616af678c00351950e67984b1f474c86a /src
parent3eec5e159921a881bae4741434968896ff7e4620 (diff)
downloadhercules-7c7ba90e380488658737436e409c6b8aa019b35d.tar.gz
hercules-7c7ba90e380488658737436e409c6b8aa019b35d.tar.bz2
hercules-7c7ba90e380488658737436e409c6b8aa019b35d.tar.xz
hercules-7c7ba90e380488658737436e409c6b8aa019b35d.zip
- Fixed the plugin's makefile to make it compile cleanly
- Added used of Show* stuff in sig.c rather than printf. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6048 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Makefile4
-rw-r--r--src/plugins/sig.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/src/plugins/Makefile b/src/plugins/Makefile
index d7b6f4573..71cb6ec3a 100644
--- a/src/plugins/Makefile
+++ b/src/plugins/Makefile
@@ -42,5 +42,9 @@ clean:
sample.$(PLUGINEXT): sample.c $(COMMON_H)
sig.$(PLUGINEXT): sig.c $(COMMON_H)
+ $(CC) $(CFLAGS) -shared -o ../../plugins/$@ $< \
+ ../common/obj/showmsg.o
+ @touch $@
+
pid.$(PLUGINEXT): pid.c $(COMMON_H)
gui.$(PLUGINEXT): gui.c $(COMMON_H)
diff --git a/src/plugins/sig.c b/src/plugins/sig.c
index 1e9c36891..6f41bfdc2 100644
--- a/src/plugins/sig.c
+++ b/src/plugins/sig.c
@@ -27,13 +27,13 @@ PLUGIN_EVENTS_TABLE = {
#if defined(_WIN32) || defined(MINGW)
int sig_init() {
- printf("This plugin is not supported - Enable 'exchndl' instead!");
+ ShowError("sig: This plugin is not supported - Enable 'exchndl' instead!");
return 0;
}
int sig_final() { return 0; }
#elif defined (__NETBSD__) || defined (__FREEBSD__)
int sig_init() {
- printf("This plugin is not supported!");
+ ShowError("sig: This plugin is not supported!");
return 0;
}
int sig_final() { return 0; }
@@ -114,7 +114,7 @@ void sig_dump(int sn)
size_t size;
#endif
- printf ("Dumping stack to '"CL_WHITE"%s"CL_RESET"'... ", file);
+ ShowNotice ("Dumping stack to '"CL_WHITE"%s"CL_RESET"'...\n", file);
if ((revision = getrevision()) != NULL)
fprintf(fp, "Version: svn%s \n", revision);
else
@@ -135,7 +135,7 @@ void sig_dump(int sn)
free(stack);
#endif
- printf ("Done.\n");
+ ShowNotice("%s Saved.\n", file);
fflush(stdout);
fclose(fp);
}