X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=answerscripts.c;h=ca1a412b9dc3c81f577871f09468185e620d95cf;hb=64ac1ebfdbe2d4c515b626b23bb172eb01b2bb39;hp=f84dcc6c00352f760948234b4080a2ab5abe9b24;hpb=d3598beeb26164431a9b2ed8a3ace24a4d6ecf6e;p=mirrors%2Flibpurple-core-answerscripts.git diff --git a/answerscripts.c b/answerscripts.c index f84dcc6..ca1a412 100755 --- a/answerscripts.c +++ b/answerscripts.c @@ -32,8 +32,6 @@ char *message = NULL; char *hook_script = NULL; -char response[ANSWERSCRIPTS_LINE_LENGTH+1]; -int i; typedef struct { FILE *pipe; @@ -41,6 +39,8 @@ typedef struct { } answerscripts_job; int answerscripts_process_message_cb(answerscripts_job *job) { + int i; + char response[ANSWERSCRIPTS_LINE_LENGTH+1]; FILE *pipe = job->pipe; PurpleConversation *conv = job->conv;