=================================================================== RCS file: /home/cvs/OpenXM/src/ox_toolkit/sample1.c,v retrieving revision 1.4 retrieving revision 1.8 diff -u -p -r1.4 -r1.8 --- OpenXM/src/ox_toolkit/sample1.c 2003/01/11 11:42:32 1.4 +++ OpenXM/src/ox_toolkit/sample1.c 2003/09/15 09:31:42 1.8 @@ -1,5 +1,5 @@ /* -*- mode: C -*- */ -/* $OpenXM: OpenXM/src/ox_toolkit/sample1.c,v 1.3 2000/10/10 05:23:21 ohara Exp $ */ +/* $OpenXM: OpenXM/src/ox_toolkit/sample1.c,v 1.7 2003/03/30 08:05:23 ohara Exp $ */ /* This sample program explains how to construct @@ -16,13 +16,15 @@ #include #include "ox_toolkit.h" +OXFILE* ox_start(char* host, char* prog1, char* prog2); + /* This program uses High-level functions of OpenXM C library. */ int main() { OXFILE *s; cmo_list *c; - ox_stderr_init(NULL); + ox_stderr_init(stderr); /* starting an OpenXM server */ s = ox_start("localhost", "ox", "ox_sm1"); @@ -33,9 +35,9 @@ int main() the elements are a bignum. */ c = new_cmo_list(); - list_append(c, new_cmo_zz_set_si(10000)); - list_append(c, new_cmo_zz_set_si(-2342)); - list_append(c, new_cmo_zz_set_string("3141592653289793238462643383279")); + list_append(c, (cmo *)new_cmo_zz_set_si(10000)); + list_append(c, (cmo *)new_cmo_zz_set_si(-2342)); + list_append(c, (cmo *)new_cmo_zz_set_string("3141592653289793238462643383279")); /* sending the list above. */ ox_push_cmo(s, (cmo *)c);