Bryan Drewery 21 лет назад
Родитель
Сommit
31391bd13e
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      src/binary.c
  2. 1 1
      src/binary.h
  3. 1 1
      src/main.c

+ 1 - 1
src/binary.c

@@ -396,7 +396,7 @@ static bool check_bin_initialized(const char *fname)
   return 0;
 }
 
-void write_settings(const char *fname, int die, int conf)
+void write_settings(const char *fname, int die, bool conf)
 {
   MD5_CTX ctx;
   char *hash = NULL;

+ 1 - 1
src/binary.h

@@ -11,6 +11,6 @@ extern int checked_bin_buf;
 #  define WRITE_CONF            BIT3
 
 void check_sum(const char *, const char *);
-void write_settings(const char *, int, int);
+void write_settings(const char *, int, bool);
 void conf_to_bin(conf_t *, bool, int);
 #endif /* !_BINARY_H */

+ 1 - 1
src/main.c

@@ -292,7 +292,7 @@ static void dtx_arg(int argc, char *argv[])
         readconf(optarg, CONF_ENC);
         fix_tilde(&conf.binpath);
         parseconf(0);
-        conf_to_bin(&conf, 0, 6);		/* this will exit() in write_settings() */
+        conf_to_bin(&conf, 6, 1);		/* this will exit() in write_settings() */
       case 'B':
         localhub = 0;
         used_B = 1;