Merge pull request #268 from KAction/string-os-name

Change Context.os_name field to String
This commit is contained in:
Friedel Ziegelmayer
2019-07-31 22:13:18 +02:00
committed by GitHub
10 changed files with 45 additions and 30 deletions

View File

@@ -393,7 +393,7 @@ fn main_0(args: Vec<String>) -> Result<(), failure::Error> {
let mut context = dc_context_new(
Some(receive_event),
0 as *mut libc::c_void,
b"CLI\x00" as *const u8 as *const libc::c_char,
Some("CLI".into()),
);
unsafe { dc_cmdline_skip_auth() };