From 0a480bc862c9c54cf14e36c692bd5a1f01931fb6 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Sat, 8 Mar 2008 15:43:16 +0100 Subject: [PATCH] Get rid of compilation warning messages --- src/MacVim/AuthorizedShellCommand.m | 2 +- src/MacVim/MMAppController.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MacVim/AuthorizedShellCommand.m b/src/MacVim/AuthorizedShellCommand.m index d3c8337a..24e8fa9b 100644 --- a/src/MacVim/AuthorizedShellCommand.m +++ b/src/MacVim/AuthorizedShellCommand.m @@ -71,7 +71,7 @@ arguments[i] = NULL; err = AuthorizationExecuteWithPrivileges (authorizationRef, toolPath, - kAuthorizationFlagDefaults, arguments, &ioPipe); + kAuthorizationFlagDefaults, (char*const*)arguments, &ioPipe); if (err != errAuthorizationSuccess) goto cleanup; diff --git a/src/MacVim/MMAppController.m b/src/MacVim/MMAppController.m index cb5348d7..3923f1ea 100644 --- a/src/MacVim/MMAppController.m +++ b/src/MacVim/MMAppController.m @@ -1152,7 +1152,7 @@ executeInLoginShell(NSString *path, NSArray *args) // Get the C string representation of the shell path before the fork since // we must not call Foundation functions after a fork. - char *shellPath = [shell fileSystemRepresentation]; + const char *shellPath = [shell fileSystemRepresentation]; // Fork and execute the process. int ds[2]; -- 2.11.4.GIT