mirror of https://github.com/FreeRDP/FreeRDP
[client,mac] fix casting in main()
This commit is contained in:
parent
1f827f6be3
commit
14f69d0657
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue