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

index eb170c2..766958b 100644 (file)
@@ -7,11 +7,11 @@
 
 char *strdup(const char *s)
 {
-  int l = strlen(s)+1;
-  char *d = malloc(l);
+    int l = strlen(s) + 1;
+    char *d = malloc(l);
 
-  if ( d )
-    memcpy(d, s, l);
+    if (d)
+       memcpy(d, s, l);
 
-  return d;
+    return d;
 }