Run Nindent on com32/lib/strerror.c
authorH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:24 +0000 (15:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:24 +0000 (15:10 -0700)
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>
com32/lib/strerror.c

index 5d3fc9a..8dbe74a 100644 (file)
@@ -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);
 }