summaryrefslogtreecommitdiffstats
path: root/src/trigger.c
diff options
context:
space:
mode:
authormongo <andmarti@gmail.com>2017-03-17 16:00:10 -0300
committermongo <andmarti@gmail.com>2017-03-17 16:00:10 -0300
commit298c1423e39d5218ae62b58743a3e9aca12198d1 (patch)
tree7b1080e84efe0640468e70795587c5d043896ed4 /src/trigger.c
parente78c2f8d465023581f8514a419239cd4cb748ebd (diff)
Removed tabs
Diffstat (limited to 'src/trigger.c')
-rw-r--r--src/trigger.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/trigger.c b/src/trigger.c
index df3dde6..dbd1403 100644
--- a/src/trigger.c
+++ b/src/trigger.c
@@ -83,13 +83,13 @@ void set_trigger(int r, int c, int rf, int cf, char * str) {
#endif
if (strcmp(get(d,"type"), "C")== 0) {
char * error;
- char buffer[PATHLEN];
- char buffer1[PATHLEN];
- tmp|=TRG_C;
- sprintf(buffer,"module/%s",n->trigger->file);
-
- if(plugin_exists(buffer,strlen(buffer),buffer1))
- n->trigger->handle=dlopen(buffer1,RTLD_LAZY);
+ char buffer[PATHLEN];
+ char buffer1[PATHLEN];
+ tmp |= TRG_C;
+ sprintf(buffer,"module/%s",n->trigger->file);
+
+ if(plugin_exists(buffer,strlen(buffer),buffer1))
+ n->trigger->handle=dlopen(buffer1,RTLD_LAZY);
if(!n->trigger->handle) {
fputs (dlerror(), stderr);
exit(1);
@@ -161,8 +161,7 @@ void do_C_Trigger_cell(struct ent * p, int rw) {
-int plugin_exists(char *name, int len, char *path)
-{
+int plugin_exists(char *name, int len, char *path) {
FILE *fp;
static char *HomeDir;