summaryrefslogtreecommitdiff
path: root/com32/lib/strerror.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:24 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:24 -0700
commit6cefe261f5780671ebe4347f041b77a4d615db87 (patch)
tree7367e4614dd36cc81ffc57468fa1d73d5017cbe1 /com32/lib/strerror.c
parentae78593e1355783bfb1ea9badaf031e6bc6427c2 (diff)
downloadsyslinux-6cefe261f5780671ebe4347f041b77a4d615db87.tar.gz
Run Nindent on com32/lib/strerror.c
Automatically reformat com32/lib/strerror.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/strerror.c')
-rw-r--r--com32/lib/strerror.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/com32/lib/strerror.c b/com32/lib/strerror.c
index 5d3fc9a3..8dbe74ad 100644
--- a/com32/lib/strerror.c
+++ b/com32/lib/strerror.c
@@ -6,18 +6,18 @@
char *strerror(int errnum)
{
- static char message[32] = "error "; /* enough for error 2^63-1 */
+ static char message[32] = "error "; /* enough for error 2^63-1 */
- char numbuf[32];
- char *p;
+ char numbuf[32];
+ char *p;
- p = numbuf+sizeof numbuf;
- *--p = '\0';
+ p = numbuf + sizeof numbuf;
+ *--p = '\0';
- do {
- *--p = (errnum % 10) + '0';
- errnum /= 10;
- } while ( errnum );
+ do {
+ *--p = (errnum % 10) + '0';
+ errnum /= 10;
+ } while (errnum);
- return (char *)memcpy(message+6, p, (numbuf+sizeof numbuf)-p);
+ return (char *)memcpy(message + 6, p, (numbuf + sizeof numbuf) - p);
}