mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 09:48:59 +00:00
update code style
This commit is contained in:
parent
674f807cf1
commit
c66bdc1120
2 changed files with 2 additions and 2 deletions
|
|
@ -87,8 +87,8 @@ char* get_XDisplay_name(){
|
|||
#if defined(USE_X11)
|
||||
const char* display = getXDisplay();
|
||||
char* sd = (char*)calloc(100, sizeof(char*));
|
||||
if(sd)strcpy(sd, display);
|
||||
|
||||
if (sd) { strcpy(sd, display); }
|
||||
return sd;
|
||||
#else
|
||||
return "GetXDisplayName is only supported on Linux";
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
int show_alert(const char *title, const char *msg,
|
||||
const char *defaultButton, const char *cancelButton){
|
||||
|
||||
int alert = showAlert(title, msg, defaultButton, cancelButton);
|
||||
|
||||
return alert;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue