diff options
| author | Teddy Wing | 2018-10-06 01:27:02 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-10-06 01:27:02 +0200 |
| commit | 18d499d07928a7276d45acaf7b061d4fb2a7e953 (patch) | |
| tree | b8fed83050c1b10bba19bd0cdca4b5cb276f865e /src | |
| parent | 60809b7884621cb949eec3ddbe1eae76103d17c2 (diff) | |
| download | dome-key-map-18d499d07928a7276d45acaf7b061d4fb2a7e953.tar.bz2 | |
c_parse_args(): Change return value to mut pointer
Otherwise we aren't able to pass it to the `config_free()` function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cocoa_bridge.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cocoa_bridge.rs b/src/cocoa_bridge.rs index 70d837a..37654ea 100644 --- a/src/cocoa_bridge.rs +++ b/src/cocoa_bridge.rs @@ -302,7 +302,7 @@ fn run_action(map_action: &MapAction) { pub extern "C" fn c_parse_args( args: *const *const c_char, length: size_t, -) -> *const Config { +) -> *mut Config { let args = unsafe { assert!(!args.is_null()); |
