Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: fusl/src/signal/psignal.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fusl/src/signal/psignal.c
diff --git a/fusl/src/signal/psignal.c b/fusl/src/signal/psignal.c
index 02f1c7609603885e291d63dcc1f649377b0aa6fb..6d8a0e34f6b1265be1188e61633b371e41b837b5 100644
--- a/fusl/src/signal/psignal.c
+++ b/fusl/src/signal/psignal.c
@@ -2,9 +2,10 @@
#include <string.h>
#include <signal.h>
-void psignal(int sig, const char *msg)
-{
- char *s = strsignal(sig);
- if (msg) fprintf(stderr, "%s: %s\n", msg, s);
- else fprintf(stderr, "%s\n", s);
+void psignal(int sig, const char* msg) {
+ char* s = strsignal(sig);
+ if (msg)
+ fprintf(stderr, "%s: %s\n", msg, s);
+ else
+ fprintf(stderr, "%s\n", s);
}

Powered by Google App Engine
This is Rietveld 408576698