From: H. Peter Anvin Date: Fri, 29 May 2009 22:10:24 +0000 (-0700) Subject: Run Nindent on com32/lib/strerror.c X-Git-Tag: syslinux-3.83-pre2~283 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cefe261f5780671ebe4347f041b77a4d615db87;p=platform%2Fupstream%2Fsyslinux.git Run Nindent on com32/lib/strerror.c Automatically reformat com32/lib/strerror.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/strerror.c b/com32/lib/strerror.c index 5d3fc9a..8dbe74a 100644 --- a/com32/lib/strerror.c +++ b/com32/lib/strerror.c @@ -6,18 +6,18 @@ char *strerror(int errnum) { - static char message[32] = "error "; /* enough for error 2^63-1 */ + static char message[32] = "error "; /* enough for error 2^63-1 */ - char numbuf[32]; - char *p; + char numbuf[32]; + char *p; - p = numbuf+sizeof numbuf; - *--p = '\0'; + p = numbuf + sizeof numbuf; + *--p = '\0'; - do { - *--p = (errnum % 10) + '0'; - errnum /= 10; - } while ( errnum ); + do { + *--p = (errnum % 10) + '0'; + errnum /= 10; + } while (errnum); - return (char *)memcpy(message+6, p, (numbuf+sizeof numbuf)-p); + return (char *)memcpy(message + 6, p, (numbuf + sizeof numbuf) - p); }