summaryrefslogtreecommitdiffstats
path: root/lib/libc/string
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2012-09-19 19:22:24 +0000
committerjilles <jilles@FreeBSD.org>2012-09-19 19:22:24 +0000
commit398bf0a7edf532f65e99b7ef74111493bd290152 (patch)
tree31ac43d2e27bd0aba925c11c34a4fba2ab843a09 /lib/libc/string
parent766649e667cecccb6bb13362bff153ccba07e76c (diff)
downloadFreeBSD-src-398bf0a7edf532f65e99b7ef74111493bd290152.zip
FreeBSD-src-398bf0a7edf532f65e99b7ef74111493bd290152.tar.gz
strsignal(): Reindent.
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strsignal.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/libc/string/strsignal.c b/lib/libc/string/strsignal.c
index 7bd71fb..8fc1f85 100644
--- a/lib/libc/string/strsignal.c
+++ b/lib/libc/string/strsignal.c
@@ -121,27 +121,27 @@ strsignal(int num)
#endif
sizeof(sig_ebuf));
- signum = num;
- if (num < 0)
- signum = -signum;
-
- t = tmp;
- do {
- *t++ = "0123456789"[signum % 10];
- } while (signum /= 10);
- if (num < 0)
- *t++ = '-';
-
- p = (ebuf + n);
- *p++ = ':';
- *p++ = ' ';
-
- for (;;) {
- *p++ = *--t;
- if (t <= tmp)
- break;
- }
- *p = '\0';
+ signum = num;
+ if (num < 0)
+ signum = -signum;
+
+ t = tmp;
+ do {
+ *t++ = "0123456789"[signum % 10];
+ } while (signum /= 10);
+ if (num < 0)
+ *t++ = '-';
+
+ p = (ebuf + n);
+ *p++ = ':';
+ *p++ = ' ';
+
+ for (;;) {
+ *p++ = *--t;
+ if (t <= tmp)
+ break;
+ }
+ *p = '\0';
}
#if defined(NLS)
OpenPOWER on IntegriCloud