diff options
author | mongo <andmarti@gmail.com> | 2017-03-17 16:00:10 -0300 |
---|---|---|
committer | mongo <andmarti@gmail.com> | 2017-03-17 16:00:10 -0300 |
commit | 298c1423e39d5218ae62b58743a3e9aca12198d1 (patch) | |
tree | 7b1080e84efe0640468e70795587c5d043896ed4 | |
parent | e78c2f8d465023581f8514a419239cd4cb748ebd (diff) |
Removed tabs
-rw-r--r-- | src/trigger.c | 17 |
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; |