Index: work/old/tools/pcb2ncap/Makefile =================================================================== --- work/old/tools/pcb2ncap/Makefile (revision 1334) +++ work/old/tools/pcb2ncap/Makefile (revision 1335) @@ -1,7 +1,7 @@ #install directory BIN=/usr/bin -OPT = -O5 +#OPT = -O5 CXX=g++ all: pcb2ncap up2ps up2pcb catlayer Index: work/old/tools/pcb2ncap/catlayer.cc =================================================================== --- work/old/tools/pcb2ncap/catlayer.cc (revision 1334) +++ work/old/tools/pcb2ncap/catlayer.cc (revision 1335) @@ -22,17 +22,17 @@ * lcgamboa@yahoo.com * */ -#include -#include -#include +#include +#include +#include using namespace std; -void main(int argc, char **argv) +int main(int argc, char **argv) { if (argc != 4) { cout << "usage: " << argv[0] << " layernum file.pcb file.lpcb" << endl; - exit(0); + return 0; }; ifstream fin1(argv[2]); @@ -53,4 +53,5 @@ }; }; + return 0; }; Index: work/old/tools/pcb2ncap/pcb2ncap.cc =================================================================== --- work/old/tools/pcb2ncap/pcb2ncap.cc (revision 1334) +++ work/old/tools/pcb2ncap/pcb2ncap.cc (revision 1335) @@ -24,12 +24,13 @@ */ -#include -#include +#include +#include +#include -#include -#include -#include +#include +#include +#include using namespace std; @@ -261,7 +262,7 @@ }; -void main(int argc, char **argv) +int main(int argc, char **argv) { int elm, bytes = 0; string s; @@ -269,7 +270,7 @@ if (argc < 2) { cout << "usage: " << argv[0] << " pcbfile " << endl; - exit(0); + return 0; }; string fname = argv[1]; @@ -297,4 +298,5 @@ devices[i]->make(); }; + return 0; };