From: H. Peter Anvin Date: Fri, 29 May 2009 22:10:23 +0000 (-0700) Subject: Run Nindent on com32/lib/memccpy.c X-Git-Tag: syslinux-3.83-pre2~316 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be4e5ae0f6797d380c0c95e717727afc3223872b;p=platform%2Fupstream%2Fsyslinux.git Run Nindent on com32/lib/memccpy.c Automatically reformat com32/lib/memccpy.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/memccpy.c b/com32/lib/memccpy.c index 22f68de..7fd9df6 100644 --- a/com32/lib/memccpy.c +++ b/com32/lib/memccpy.c @@ -9,15 +9,15 @@ void *memccpy(void *dst, const void *src, int c, 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 == (char)c ) - return q; - } + while (n--) { + *q++ = ch = *p++; + if (ch == (char)c) + return q; + } - return NULL; /* No instance of "c" found */ + return NULL; /* No instance of "c" found */ }