diff options
author | Marvin W <git@larma.de> | 2020-01-09 13:39:36 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2020-01-09 13:39:36 +0100 |
commit | b2af8c51124819d7c5d0bd348c52a0b15f54d582 (patch) | |
tree | e0e762d61dbd980bc9322b43d76461038671944a /plugins/signal-protocol/src/context.vala | |
parent | 3650288a111625a24515e511fa7f1feff697b726 (diff) | |
download | dino-b2af8c51124819d7c5d0bd348c52a0b15f54d582.tar.gz dino-b2af8c51124819d7c5d0bd348c52a0b15f54d582.zip |
Fix various typing issues in signal bindings
Diffstat (limited to 'plugins/signal-protocol/src/context.vala')
-rw-r--r-- | plugins/signal-protocol/src/context.vala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/signal-protocol/src/context.vala b/plugins/signal-protocol/src/context.vala index 87b51756..40a07b0f 100644 --- a/plugins/signal-protocol/src/context.vala +++ b/plugins/signal-protocol/src/context.vala @@ -14,7 +14,7 @@ public class Context { ctx.mutex.unlock(); } - static void stderr_log(LogLevel level, string message, void* user_data) { + static void stderr_log(LogLevel level, string message, size_t len, void* user_data) { printerr(@"$level: $message\n"); } @@ -44,7 +44,9 @@ public class Context { Gee.Set<PreKeyRecord> res = new Gee.HashSet<PreKeyRecord>(); for(uint i = start; i < start+count; i++) { ECKeyPair pair = generate_key_pair(); - res.add(new PreKeyRecord(i, pair)); + PreKeyRecord record; + throw_by_code(PreKeyRecord.create(out record, i, pair)); + res.add(record); } return res; } |