=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/plugin/oxcgi.c,v retrieving revision 1.8 retrieving revision 1.11 diff -u -p -r1.8 -r1.11 --- OpenXM/src/kan96xx/plugin/oxcgi.c 2005/02/27 05:28:06 1.8 +++ OpenXM/src/kan96xx/plugin/oxcgi.c 2020/10/06 11:33:47 1.11 @@ -1,5 +1,7 @@ -/* $OpenXM: OpenXM/src/kan96xx/plugin/oxcgi.c,v 1.7 2004/11/23 01:37:47 takayama Exp $ */ +/* $OpenXM: OpenXM/src/kan96xx/plugin/oxcgi.c,v 1.10 2005/07/03 11:08:54 ohara Exp $ */ #include +#include +#include #include "datatype.h" #include "stackm.h" #include "extern.h" @@ -9,10 +11,10 @@ static int ppp(char *s,int kstart,int kend, int vstart, int vend); static int cgiHex(int p); -static test1(); -static test2(); -static test3(); -static test4(); +static void test1(); +static void test2(); +static void test3(); +static void test4(); /* main() {KSstart();test4();} */ @@ -28,8 +30,8 @@ struct object cgiUrlEncodingToKeyValuePair(char *s) { int vstart,vend; /* start of value, end of value */ int state; int nOfPairs; - struct object rob; - struct object ob; + struct object rob = OINIT; + struct object ob = OINIT; int k; n = strlen(s); start = -1; for (i=0; i \n

"; ob=cgiHttpToKeyValuePair(s,strlen(s)); @@ -558,7 +567,7 @@ static struct object toTokens(char *s,int *sep,int nse /* s is the input, and sep are the separators. */ /* -1 means <=' ' are separators */ int nOfTokens,n,i,done,k,start,sav; - struct object rob; + struct object rob = OINIT; char *t; rob = NullObject;