#include <stdio.h>
#include <com_err.h>
-static
-cproc1(as, arock)
- char *arock;
- struct cmd_syndesc *as;
+static int
+cproc1(struct cmd_syndesc *as, void *arock)
{
printf("in the apple command\n");
return 0;
}
-static
-cproc2(as, arock)
- char *arock;
- struct cmd_syndesc *as;
+static int
+cproc2(struct cmd_syndesc *as, void *arock)
{
register struct cmd_item *ti;
printf("in the pear command\n");
return 0;
}
-static void
-cproc3(as, arock)
- char *arock;
- struct cmd_syndesc *as;
+static int
+cproc3(struct cmd_syndesc *as, void *arock)
{
exit(0);
}
-main(argc, argv)
- int argc;
- char **argv;
+int
+main(int argc, char **argv)
{
register struct cmd_syndesc *ts;
char tline[1000];