cast not optional sync
authorVolker Birk <vb@pep-project.org>
Tue, 28 May 2019 17:58:34 +0200
branchsync
changeset 3757bf2916b900bf
parent 3756 a4e6110def14
child 3758 3c8a25f6f2c2
child 3762 55501092d6e3
cast not optional
src/pgp_sequoia.c
src/status_to_string.h
     1.1 --- a/src/pgp_sequoia.c	Tue May 28 17:17:28 2019 +0200
     1.2 +++ b/src/pgp_sequoia.c	Tue May 28 17:58:34 2019 +0200
     1.3 @@ -2087,7 +2087,7 @@
     1.4      if (memory_writer) {
     1.5          if (status == PEP_STATUS_OK) {
     1.6              // Add a trailing NUL.
     1.7 -            pgp_writer_write(NULL, memory_writer, "", 1);
     1.8 +            pgp_writer_write(NULL, memory_writer, (const uint8_t *) "", 1);
     1.9          }
    1.10  
    1.11          pgp_writer_free(memory_writer);
     2.1 --- a/src/status_to_string.h	Tue May 28 17:17:28 2019 +0200
     2.2 +++ b/src/status_to_string.h	Tue May 28 17:58:34 2019 +0200
     2.3 @@ -78,6 +78,7 @@
     2.4      case PEP_SYNC_NO_CHANNEL: return "PEP_SYNC_NO_CHANNEL";
     2.5      case PEP_SYNC_CANNOT_ENCRYPT: return "PEP_SYNC_CANNOT_ENCRYPT";
     2.6      case PEP_SYNC_NO_MESSAGE_SEND_CALLBACK: return "PEP_SYNC_NO_MESSAGE_SEND_CALLBACK";
     2.7 +    case PEP_SYNC_CANNOT_START: return "PEP_SYNC_CANNOT_START";
     2.8  
     2.9      case PEP_CANNOT_INCREASE_SEQUENCE: return "PEP_CANNOT_INCREASE_SEQUENCE";
    2.10