URI: 
       tRename encryptsave to encryptdatafile - ratox - FIFO based tox client
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit a4bfe3662ed4d1f7d9175b369351e6943f52a1b6
   DIR parent 83deacb578bd73774504854b145b9fe812a592dc
  HTML Author: sin <sin@2f30.org>
       Date:   Mon, 22 Sep 2014 13:24:01 +0100
       
       Rename encryptsave to encryptdatafile
       
       Diffstat:
         M ratox.c                             |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/ratox.c b/ratox.c
       t@@ -585,7 +585,7 @@ dataload(void)
        
                fp = fopen(DATAFILE, "r");
                if (!fp) {
       -                if (encryptsave == 1)
       +                if (encryptdatafile == 1)
                                while (readpass("New password: ") == -1);
                        return;
                }
       t@@ -605,7 +605,7 @@ dataload(void)
                        exit(EXIT_FAILURE);
                }
        
       -        if (encryptsave == 1) {
       +        if (encryptdatafile == 1) {
                        if (tox_is_data_encrypted(data) == 1) {
                                while (readpass("Password: ") == -1 ||
                                       tox_encrypted_load(tox, data, sz, passphrase, pplen) < 0)
       t@@ -653,14 +653,14 @@ datasave(void)
                        exit(EXIT_FAILURE);
                }
        
       -        sz = encryptsave == 1 ? tox_encrypted_size(tox) : tox_size(tox);
       +        sz = encryptdatafile == 1 ? tox_encrypted_size(tox) : tox_size(tox);
                data = malloc(sz);
                if (!data) {
                        perror("malloc");
                        exit(EXIT_FAILURE);
                }
        
       -        if (encryptsave == 1)
       +        if (encryptdatafile == 1)
                        tox_encrypted_save(tox, data, passphrase, pplen);
                else
                        tox_save(tox, data);