Attachment 'exit-arg.diff'
Download 1 diff -Nru advsys-1.2.orig/advcom.c advsys-1.2/advcom.c
2 --- advsys-1.2.orig/advcom.c 1992-11-16 12:56:08.000000000 -0500
3 +++ advsys-1.2/advcom.c 2007-10-15 13:09:21.000000000 -0400
4 @@ -653,6 +653,6 @@
5 #ifdef MAC
6 macpause();
7 #endif
8 - exit();
9 + exit(1);
10 }
11
12 diff -Nru advsys-1.2.orig/advexe.c advsys-1.2/advexe.c
13 --- advsys-1.2.orig/advexe.c 1992-11-16 12:56:57.000000000 -0500
14 +++ advsys-1.2/advexe.c 2007-10-15 13:20:52.000000000 -0400
15 @@ -224,7 +224,7 @@
16 macpause();
17 #endif
18 trm_done();
19 - exit();
20 + exit(0);
21 break;
22 case OP_YORN:
23 trm_get(line);
24 diff -Nru advsys-1.2.orig/advint.c advsys-1.2/advint.c
25 --- advsys-1.2.orig/advint.c 1992-11-16 12:56:59.000000000 -0500
26 +++ advsys-1.2/advint.c 2007-10-15 13:10:01.000000000 -0400
27 @@ -63,7 +63,7 @@
28 fname = argv[i];
29 if (fname == NULL) {
30 printf("usage: advint [-r<rows>] [-c<columns>] [-l<log-file>] <file>\n");
31 - exit();
32 + exit(1);
33 }
34 #endif
35
36 @@ -129,5 +129,5 @@
37 {
38 trm_str(msg);
39 trm_chr('\n');
40 - exit();
41 + exit(1);
42 }
43 diff -Nru advsys-1.2.orig/advscn.c advsys-1.2/advscn.c
44 --- advsys-1.2.orig/advscn.c 1992-11-16 12:56:11.000000000 -0500
45 +++ advsys-1.2/advscn.c 2007-10-15 13:12:26.000000000 -0400
46 @@ -232,7 +232,7 @@
47 strcpy(fname,&line[1]); fname[strlen(fname)-1] = 0;
48 if ((fp = fopen(fname,"r")) == NULL) {
49 printf("Can't open include file: %s\n",fname);
50 - exit();
51 + exit(-1);
52 }
53 printf("[ including %s ]\n",fname);
54
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.