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

index ba4272b..284e72e 100644 (file)
@@ -7,18 +7,18 @@
 
 size_t strlcpy(char *dst, const char *src, size_t size)
 {
-  size_t bytes = 0;
-  char *q = dst;
-  const char *p = src;
-  char ch;
+    size_t bytes = 0;
+    char *q = dst;
+    const char *p = src;
+    char ch;
 
-  while ( (ch = *p++) ) {
-    if ( bytes < size )
-      *q++ = ch;
+    while ((ch = *p++)) {
+       if (bytes < size)
+           *q++ = ch;
 
-    bytes++;
-  }
+       bytes++;
+    }
 
-  *q = '\0';
-  return bytes;
+    *q = '\0';
+    return bytes;
 }