chiark / gitweb /
Change integer 'use_logfile_' to boolean
authorymjmsghs1 <ymjmsghs1@naver.com>
Fri, 15 Dec 2017 06:38:41 +0000 (15:38 +0900)
committerymjmsghs1 <ymjmsghs1@naver.com>
Fri, 15 Dec 2017 06:38:41 +0000 (15:38 +0900)
Signed-off-by: ymjmsghs1 <ymjmsghs1@naver.com>
src/sat.cc
src/sat.h

index 7b72ec239acb8d23575f61bc6ce89c686b0c1f67..0528bf2691e4425dda0043bff4bfb3fa28ef4f6d 100644 (file)
@@ -680,7 +680,7 @@ Sat::Sat() {
   strict_ = 1;
   warm_ = 0;
   run_on_anything_ = 0;
-  use_logfile_ = 0;
+  use_logfile_ = false;
   logfile_ = 0;
   log_timestamps_ = true;
   // Detect 32/64 bit binary.
@@ -1015,7 +1015,7 @@ bool Sat::ParseArgs(int argc, char **argv) {
 
   // Set logfile flag.
   if (strcmp(logfilename_, ""))
-    use_logfile_ = 1;
+    use_logfile_ = true;
   // Checks valid page length.
   if (page_length_ &&
       !(page_length_ & (page_length_ - 1)) &&
index 5cc3bec12adf15464fdffb7c11b3ea293726745a..33824b4a816f661c8f7696b0b9ea17745eb8325e 100644 (file)
--- a/src/sat.h
+++ b/src/sat.h
@@ -174,7 +174,7 @@ class Sat {
   bool crazy_error_injection_;        // Simulate lots of errors.
   uint64 max_errorcount_;             // Number of errors before forced exit.
   int run_on_anything_;               // Ignore unknown machine ereor.
-  int use_logfile_;                   // Log to a file.
+  bool use_logfile_;                  // Log to a file.
   char logfilename_[255];             // Name of file to log to.
   int logfile_;                       // File handle to log to.
   bool log_timestamps_;               // Whether to add timestamps to log lines.