[Expat-checkins] CVS: expat/examples outline.c,1.1,1.2
Fred L. Drake
fdrake@users.sourceforge.net
Wed, 25 Jul 2001 10:04:24 -0700
Update of /cvsroot/expat/expat/examples
In directory usw-pr-cvs1:/tmp/cvs-serv28023/examples
Modified Files:
outline.c
Log Message:
Clean up a few compiler warnings in the sameple code.
Index: outline.c
===================================================================
RCS file: /cvsroot/expat/expat/examples/outline.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** outline.c 2000/09/18 16:26:21 1.1
--- outline.c 2001/07/25 17:04:22 1.2
***************
*** 31,35 ****
int Depth;
! void
start(void *data, const char *el, const char **attr) {
int i;
--- 31,35 ----
int Depth;
! static void
start(void *data, const char *el, const char **attr) {
int i;
***************
*** 48,57 ****
} /* End of start handler */
! void
end(void *data, const char *el) {
Depth--;
} /* End of end handler */
! main(int argc, char **argv) {
XML_Parser p = XML_ParserCreate(NULL);
if (! p) {
--- 48,58 ----
} /* End of start handler */
! static void
end(void *data, const char *el) {
Depth--;
} /* End of end handler */
! int
! main(int argc, char *argv[]) {
XML_Parser p = XML_ParserCreate(NULL);
if (! p) {
***************
*** 83,86 ****
--- 84,88 ----
break;
}
+ return 0;
} /* End of main */