1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
diff -NrU5 omniORB-4.1.3.original/src/appl/utils/catior/catior.cc omniORB-4.1.3/src/appl/utils/catior/catior.cc
--- omniORB-4.1.3.original/src/appl/utils/catior/catior.cc 2009-06-11 15:09:32.000000000 +0000
+++ omniORB-4.1.3/src/appl/utils/catior/catior.cc 2009-06-11 15:20:45.000000000 +0000
@@ -358,11 +358,11 @@
int c;
int hexflag = 0;
int omniflag = 0;
- while((c = getopt(argc,argv,"xo")) != EOF) {
+ while((c = getopt(argc,argv,"xo")) != -1) {
switch(c) {
case 'x':
hexflag = 1;
break;
case 'o':
diff -NrU5 omniORB-4.1.3.original/src/appl/utils/convertior/convertior.cc omniORB-4.1.3/src/appl/utils/convertior/convertior.cc
--- omniORB-4.1.3.original/src/appl/utils/convertior/convertior.cc 2009-06-11 15:09:32.000000000 +0000
+++ omniORB-4.1.3/src/appl/utils/convertior/convertior.cc 2009-06-11 15:21:11.000000000 +0000
@@ -148,11 +148,11 @@
// Get options:
int c;
- while((c = getopt(argc,argv,"x")) != EOF)
+ while((c = getopt(argc,argv,"x")) != -1)
{
switch(c)
{
case '?':
case 'h':
diff -NrU5 omniORB-4.1.3.original/src/tool/omkdepend/def.h omniORB-4.1.3/src/tool/omkdepend/def.h
--- omniORB-4.1.3.original/src/tool/omkdepend/def.h 2009-06-11 15:09:32.000000000 +0000
+++ omniORB-4.1.3/src/tool/omkdepend/def.h 2009-06-11 15:21:34.000000000 +0000
@@ -126,11 +126,11 @@
char *realloc();
#endif
char *copy();
char *base_name();
-char *getline();
+char *get_line();
struct symtab *slookup();
struct symtab *isdefined();
struct symtab *fdefined();
struct filepointer *getfile();
struct inclist *newinclude();
diff -NrU5 omniORB-4.1.3.original/src/tool/omkdepend/main.c omniORB-4.1.3/src/tool/omkdepend/main.c
--- omniORB-4.1.3.original/src/tool/omkdepend/main.c 2009-06-11 15:09:32.000000000 +0000
+++ omniORB-4.1.3/src/tool/omkdepend/main.c 2009-06-11 15:22:23.000000000 +0000
@@ -467,11 +467,11 @@
/*
* Get the next line. We only return lines beginning with '#' since that
* is all this program is ever interested in.
*/
-char *getline(filep)
+char *get_line(filep)
register struct filepointer *filep;
{
register char *p, /* walking pointer */
*eof, /* end of file pointer */
*bol; /* beginning of line pointer */
diff -NrU5 omniORB-4.1.3.original/src/tool/omkdepend/parse.c omniORB-4.1.3/src/tool/omkdepend/parse.c
--- omniORB-4.1.3.original/src/tool/omkdepend/parse.c 2009-06-11 15:09:32.000000000 +0000
+++ omniORB-4.1.3/src/tool/omkdepend/parse.c 2009-06-11 15:23:19.000000000 +0000
@@ -39,11 +39,11 @@
{
register char *line;
register int type;
boolean recfailOK;
- while (line = getline(filep)) {
+ while (line = get_line(filep)) {
switch(type = deftype(line, filep, file_red, file, TRUE)) {
case IF:
doif:
type = find_includes(filep, file,
file_red, recursion+1, failOK);
@@ -164,11 +164,11 @@
struct inclist *file, *file_red;
{
register char *line;
register int type;
- while (line = getline(filep)) {
+ while (line = get_line(filep)) {
switch(type = deftype(line, filep, file_red, file, FALSE)) {
case IF:
case IFFALSE:
case IFGUESSFALSE:
case IFDEF:
|