Run Nindent on com32/lib/strncpy.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/strncpy.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/strncpy.c

index a8fe45f..0eda791 100644 (file)
@@ -8,15 +8,15 @@
 
 char *strncpy(char *dst, const char *src, size_t n)
 {
-  char *q = dst;
-  const char *p = src;
-  char ch;
+    char *q = dst;
+    const char *p = src;
+    char ch;
 
-  while ( n-- ) {
-    *q++ = ch = *p++;
-    if ( !ch )
-      break;
-  }
+    while (n--) {
+       *q++ = ch = *p++;
+       if (!ch)
+           break;
+    }
 
-  return dst;
+    return dst;
 }