From: H. Peter Anvin Date: Fri, 29 May 2009 22:10:23 +0000 (-0700) Subject: Run Nindent on com32/lib/memchr.c X-Git-Tag: syslinux-3.83-pre2~315 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14425e78bccf7a34b476d3fb935b8c83e5001e45;p=platform%2Fupstream%2Fsyslinux.git Run Nindent on com32/lib/memchr.c Automatically reformat com32/lib/memchr.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/memchr.c b/com32/lib/memchr.c index c5c5fa2..d641c86 100644 --- a/com32/lib/memchr.c +++ b/com32/lib/memchr.c @@ -7,12 +7,12 @@ void *memchr(const void *s, int c, size_t n) { - const unsigned char *sp = s; + const unsigned char *sp = s; - while ( n-- ) { - if ( *sp == (unsigned char)c ) - return (void *)sp; - } + while (n--) { + if (*sp == (unsigned char)c) + return (void *)sp; + } - return NULL; + return NULL; }