=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/plugin/sample.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- OpenXM/src/kan96xx/plugin/sample.c 2005/06/16 05:07:24 1.3 +++ OpenXM/src/kan96xx/plugin/sample.c 2020/10/06 11:33:47 1.4 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/src/kan96xx/plugin/sample.c,v 1.2 2000/01/16 07:55:48 takayama Exp $ */ +/* $OpenXM: OpenXM/src/kan96xx/plugin/sample.c,v 1.3 2005/06/16 05:07:24 takayama Exp $ */ #include #include "../Kan/datatype.h" #include "../Kan/stackm.h" @@ -32,7 +32,7 @@ int Kplugin_sample(int opcode, struct object obj) { struct object ob1 = OINIT; struct object ob2 = OINIT; struct object ob3 = OINIT; - static initialized = 0; + static int initialized = 0; if (opcode != KPLUGIN_SAMPLE_INIT && !initialized) { errorSample("This component is not initialized."); return(-1); @@ -108,7 +108,7 @@ struct object Kplugin_peek(int k,struct operandStack * static void errorSample(char *s) { - fprintf(stderr,"Error in plugin/sample: %s\n"); + fprintf(stderr,"Error in plugin/sample: %s\n",s); /* or push error message in the sharedStack. */ }