From: H. Peter Anvin Date: Fri, 29 May 2009 22:10:24 +0000 (-0700) Subject: Run Nindent on com32/lib/strdup.c X-Git-Tag: syslinux-3.83-pre2~284 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae78593e1355783bfb1ea9badaf031e6bc6427c2;p=platform%2Fupstream%2Fsyslinux.git Run Nindent on com32/lib/strdup.c 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 --- diff --git a/com32/lib/strdup.c b/com32/lib/strdup.c index eb170c2..766958b 100644 --- a/com32/lib/strdup.c +++ b/com32/lib/strdup.c @@ -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; }