[Midnightbsd-cvs] src [10517] trunk/lib/libc/string/strsignal.c: cleanup
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Jun 7 08:50:29 EDT 2018
Revision: 10517
http://svnweb.midnightbsd.org/src/?rev=10517
Author: laffer1
Date: 2018-06-07 08:50:28 -0400 (Thu, 07 Jun 2018)
Log Message:
-----------
cleanup
Modified Paths:
--------------
trunk/lib/libc/string/strsignal.c
Modified: trunk/lib/libc/string/strsignal.c
===================================================================
--- trunk/lib/libc/string/strsignal.c 2018-06-07 12:49:21 UTC (rev 10516)
+++ trunk/lib/libc/string/strsignal.c 2018-06-07 12:50:28 UTC (rev 10517)
@@ -10,7 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -120,29 +120,29 @@
UPREFIX,
#endif
sizeof(sig_ebuf));
- }
- signum = num;
- if (num < 0)
- signum = -signum;
+ signum = num;
+ if (num < 0)
+ signum = -signum;
- t = tmp;
- do {
- *t++ = "0123456789"[signum % 10];
- } while (signum /= 10);
- if (num < 0)
- *t++ = '-';
+ t = tmp;
+ do {
+ *t++ = "0123456789"[signum % 10];
+ } while (signum /= 10);
+ if (num < 0)
+ *t++ = '-';
- p = (ebuf + n);
- *p++ = ':';
- *p++ = ' ';
+ p = (ebuf + n);
+ *p++ = ':';
+ *p++ = ' ';
- for (;;) {
- *p++ = *--t;
- if (t <= tmp)
- break;
+ for (;;) {
+ *p++ = *--t;
+ if (t <= tmp)
+ break;
+ }
+ *p = '\0';
}
- *p = '\0';
#if defined(NLS)
catclose(catd);
More information about the Midnightbsd-cvs
mailing list