Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a0551e8

Browse files
committed
Make c++ examples return 0 from main().
1 parent 02ee041 commit a0551e8

File tree

7 files changed

+8
-1
lines changed

7 files changed

+8
-1
lines changed

src/interfaces/libpq++/examples/testlibpq1.cc

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ int main()
6262

6363
// End the transaction
6464
data.Exec("END");
65+
return 0;
6566
}
6667

6768

src/interfaces/libpq++/examples/testlibpq2.cc

+1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ int main()
5353

5454
// close the portal
5555
data.Exec("CLOSE myportal");
56+
return 0;
5657
}

src/interfaces/libpq++/examples/testlibpq3.cc

+1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ int main()
5353
cout << setiosflags(ios::right) << setw(15) << cData.GetValue(i,j);
5454
cout << endl;
5555
}
56+
return 0;
5657
}

src/interfaces/libpq++/examples/testlibpq4.cc

+1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ main()
5555
break;
5656
}
5757
}
58+
return 0;
5859
}

src/interfaces/libpq++/examples/testlibpq5.cc

+1
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,5 @@ main()
9999
// Deallocate memory allocated for the Polygon structure
100100
free(pval);
101101
}
102+
return 0;
102103
}

src/interfaces/libpq++/examples/testlibpq6.cc

+1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ main()
5656

5757
// Drop the test table
5858
data.Exec("DROP TABLE foo");
59+
return 0;
5960
}

src/interfaces/libpq++/examples/testlo.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.6 2000/04/22 22:15:48 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.7 2000/04/25 21:00:29 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -46,4 +46,5 @@ int main(int argc, char **argv)
4646
cout << "Exporting large object to file \"" << out_filename << "\"..." << endl;
4747
object.Export(out_filename);
4848
object.Exec("END"); // WHY DOES IT CORE DUMP HERE ???
49+
return 0;
4950
}

0 commit comments

Comments
 (0)