update code style

This commit is contained in:
vcaesar 2019-07-20 08:32:43 -04:00
parent 674f807cf1
commit c66bdc1120
2 changed files with 2 additions and 2 deletions

View File

@ -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";

View File

@ -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;
}