From c577ec56eec822d338ba96b6644ddf96eb18c60c Mon Sep 17 00:00:00 2001 From: vcaesar Date: Wed, 27 Feb 2019 10:27:58 -0400 Subject: [PATCH] update code style --- window/alert_c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/window/alert_c.h b/window/alert_c.h index 69c35b7..df30580 100644 --- a/window/alert_c.h +++ b/window/alert_c.h @@ -62,7 +62,7 @@ int showAlert(const char *title, const char *msg, const char *defaultButton, if (defaultButtonTitle != NULL) CFRelease(defaultButtonTitle); if (cancelButtonTitle != NULL) CFRelease(cancelButtonTitle); - if (err != 0) return -1; + if (err != 0) { return -1; } return (responseFlags == kCFUserNotificationDefaultResponse) ? 0 : 1; #elif defined(USE_X11) /* 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); } - if (buttonList == NULL) return -1; /* asprintf() failed. */ + if (buttonList == NULL) { return -1; /* asprintf() failed. */ } args[5] = "-buttons"; args[6] = buttonList; args[7] = "-default";