update code style

This commit is contained in:
vcaesar 2019-02-27 10:27:58 -04:00
parent f180f3ac03
commit c577ec56ee

View File

@ -62,7 +62,7 @@ int showAlert(const char *title, const char *msg, const char *defaultButton,
if (defaultButtonTitle != NULL) CFRelease(defaultButtonTitle); if (defaultButtonTitle != NULL) CFRelease(defaultButtonTitle);
if (cancelButtonTitle != NULL) CFRelease(cancelButtonTitle); if (cancelButtonTitle != NULL) CFRelease(cancelButtonTitle);
if (err != 0) return -1; if (err != 0) { return -1; }
return (responseFlags == kCFUserNotificationDefaultResponse) ? 0 : 1; return (responseFlags == kCFUserNotificationDefaultResponse) ? 0 : 1;
#elif defined(USE_X11) #elif defined(USE_X11)
/* Note that args[0] is set by the xmessage() function. */ /* Note that args[0] is set by the xmessage() function. */
@ -78,7 +78,7 @@ int showAlert(const char *title, const char *msg, const char *defaultButton,
asprintf(&buttonList, "%s:2,%s:3", defaultButton, cancelButton); asprintf(&buttonList, "%s:2,%s:3", defaultButton, cancelButton);
} }
if (buttonList == NULL) return -1; /* asprintf() failed. */ if (buttonList == NULL) { return -1; /* asprintf() failed. */ }
args[5] = "-buttons"; args[5] = "-buttons";
args[6] = buttonList; args[6] = buttonList;
args[7] = "-default"; args[7] = "-default";