aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2018-10-06 01:27:02 +0200
committerTeddy Wing2018-10-06 01:27:02 +0200
commit18d499d07928a7276d45acaf7b061d4fb2a7e953 (patch)
treeb8fed83050c1b10bba19bd0cdca4b5cb276f865e /src
parent60809b7884621cb949eec3ddbe1eae76103d17c2 (diff)
downloaddome-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.rs2
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());