ldc2: Cosmetic fixes and support for compiler orverride
[h316.git] / pc-tools / ldc2 / src / main.cpp
index 352b47637a7b1bb6b1d6bbc71ee610a9fec35642..8b7da8788adc4e0753701545b23467a48f19bcd1 100644 (file)
@@ -2,11 +2,17 @@
  * 
  * LDC2 source code
  *
- * $Date: 2008/08/25 21:02:24 $
+ * $Date: 2010/01/04 02:10:59 $
  * $Author: hachti $
  *
  * $Log: main.cpp,v $
- * Revision 2.4  2008/08/25 21:02:24  hachti
+ * Revision 2.6  2010/01/04 02:10:59  hachti
+ * *** empty log message ***
+ *
+ * Revision 2.5  2008-10-01 13:30:14  hachti
+ * Added some includes
+ *
+ * Revision 2.4  2008-08-25 21:02:24  hachti
  * *** empty log message ***
  *
  * Revision 2.3  2007-05-30 02:51:16  hachti
@@ -31,6 +37,9 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdlib.h>
+#include <stdio.h>
+#include <stdlib.h>
+
 
 #include <vector>
 #include <string>
@@ -107,8 +116,8 @@ void read_tape(){
   
   while(read_ahead){
 
-    bool err_checksum=false;  //! Checksum error flag.
-    bool err_integrity=false; //! Integrity error flag.
+         //  bool err_checksum=false;  //! Checksum error flag.
+         //    bool err_integrity=false; //! Integrity error flag.
     
     bool warning=false;       //! Warning flag.
     bool error=false;         //! Error flag.
@@ -137,7 +146,7 @@ void read_tape(){
     
     catch(tape_block::eof_illegal_exception &e){
       block=e.get_block();
-      err_integrity=true;
+      //      err_integrity=true;
       read_ahead=false;
       if (cfg_ignore_block_errors){
        message="Warning: Block integrity check failed!\n";
@@ -151,7 +160,7 @@ void read_tape(){
     
     catch(tape_block::checksum_error_exception &e){
       block=e.get_block();
-      err_checksum=true;
+      //      err_checksum=true;
       if (cfg_ignore_checksum_errors){
        message="Warning: Block checksum wrong!\n";
        warning=true;