Get rid of compilation warning messages

This commit is contained in:
Bjorn Winckler
2008-03-08 15:43:16 +01:00
parent dee796111a
commit 88b58bbd9f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -71,7 +71,7 @@
arguments[i] = NULL;
err = AuthorizationExecuteWithPrivileges (authorizationRef, toolPath,
kAuthorizationFlagDefaults, arguments, &ioPipe);
kAuthorizationFlagDefaults, (char*const*)arguments, &ioPipe);
if (err != errAuthorizationSuccess)
goto cleanup;
+1 -1
View File
@@ -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];