=================================================================== RCS file: /home/cvs/OpenXM/src/oxc/oxc.c,v retrieving revision 1.14 retrieving revision 1.16 diff -u -p -r1.14 -r1.16 --- OpenXM/src/oxc/oxc.c 2005/07/28 07:22:33 1.14 +++ OpenXM/src/oxc/oxc.c 2016/04/01 18:12:39 1.16 @@ -1,5 +1,5 @@ /* -*- mode: C -*- */ -/* $OpenXM: OpenXM/src/oxc/oxc.c,v 1.13 2004/12/01 17:42:46 ohara Exp $ */ +/* $OpenXM: OpenXM/src/oxc/oxc.c,v 1.15 2005/10/12 10:37:24 takayama Exp $ */ #include #include @@ -127,6 +127,17 @@ static char **makeargs(char **oldargs) return newargs; } +static int basic0[] = { + CMO_ERROR2, + CMO_NULL, + CMO_INT32, + CMO_DATUM, + CMO_STRING, + CMO_MATHCAP, + CMO_LIST, + 0 +}; + /* We assume that data has the following format: LENGTH hostname '\0' port '\0' password '\0' where LENGTH is an integer with network byte order and its value @@ -182,7 +193,9 @@ int main(int argc, char *argv[]) } if (strlen(remote_host) == 0) { - pipe_read_info(&remote_host, &port, &password); + int porti; + pipe_read_info(&remote_host, &porti, &password); + port = (short)porti; port_s = malloc(32); sprintf(port_s, "%d", port); } @@ -198,7 +211,7 @@ int main(int argc, char *argv[]) usleep(delay); if ((oxfp = connection()) != NULL) { ox_printf("oxc: oxfp = %p, fd = %d\n", oxfp, oxfp->fd); - mathcap_init("v2000.10.06", "oxc"); + mathcap_init(20001006, "v2000.10.06", "oxc", basic0, NULL); sm(oxfp); } return 0;