[client,mac] fix casting in main()

This commit is contained in:
akallabeth 2023-09-20 16:34:04 +02:00 committed by Martin Fleisz
parent 1f827f6be3
commit 14f69d0657

View File

@ -9,19 +9,18 @@
#import <Cocoa/Cocoa.h>
#include <freerdp/client/cmdline.h>
int main(int argc, const char *argv[])
int main(int argc, char *argv[])
{
const char *ctemp;
freerdp_client_warn_deprecated(argc, argv);
for (int i = 0; i < argc; i++)
{
ctemp = argv[i];
char *ctemp = argv[i];
if (memcmp(ctemp, "/p:", 3) == 0 || memcmp(ctemp, "-p:", 3) == 0)
{
memset((char *)ctemp + 3, '*', strlen(ctemp) - 3);
memset(ctemp + 3, '*', strlen(ctemp) - 3);
}
}
return NSApplicationMain(argc, argv);
const char **cargv = (const char **)argv;
return NSApplicationMain(argc, cargv);
}