From 59f4b299267d59b5ed25dac416b00739a8e6bca3 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:24 -0700 Subject: [PATCH] Run Nindent on com32/lib/strncasecmp.c Automatically reformat com32/lib/strncasecmp.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/lib/strncasecmp.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/com32/lib/strncasecmp.c b/com32/lib/strncasecmp.c index 3309d1a..8b8b967 100644 --- a/com32/lib/strncasecmp.c +++ b/com32/lib/strncasecmp.c @@ -7,17 +7,17 @@ int strncasecmp(const char *s1, const char *s2, size_t n) { - const unsigned char *c1 = s1, *c2 = s2; - unsigned char ch; - int d = 0; + const unsigned char *c1 = s1, *c2 = s2; + unsigned char ch; + int d = 0; - while ( n-- ) { - /* toupper() expects an unsigned char (implicitly cast to int) - as input, and returns an int, which is exactly what we want. */ - d = toupper(ch = *c1++) - toupper(*c2++); - if ( d || !ch ) - break; - } + while (n--) { + /* toupper() expects an unsigned char (implicitly cast to int) + as input, and returns an int, which is exactly what we want. */ + d = toupper(ch = *c1++) - toupper(*c2++); + if (d || !ch) + break; + } - return d; + return d; } -- 2.7.4