From 4481998e7aced8dcd501afdb459402fef1e98959 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:23 -0700 Subject: [PATCH] Run Nindent on com32/lib/getcwd.c Automatically reformat com32/lib/getcwd.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/getcwd.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/com32/lib/getcwd.c b/com32/lib/getcwd.c index bb0a30d..38fae52 100644 --- a/com32/lib/getcwd.c +++ b/com32/lib/getcwd.c @@ -13,18 +13,18 @@ char *getcwd(char *buf, size_t size) { - static com32sys_t reg; - char *pwdstr, *ret; + static com32sys_t reg; + char *pwdstr, *ret; - reg.eax.w[0] = 0x001f; - __intcall(0x22, ®, ®); - pwdstr = MK_PTR(reg.es, reg.ebx.w[0]); - if ((strlen(pwdstr) < size) && (buf != NULL)) { - strcpy(buf, pwdstr); - ret = buf; - } else { - ret = NULL; - errno = ERANGE; - } - return ret; + reg.eax.w[0] = 0x001f; + __intcall(0x22, ®, ®); + pwdstr = MK_PTR(reg.es, reg.ebx.w[0]); + if ((strlen(pwdstr) < size) && (buf != NULL)) { + strcpy(buf, pwdstr); + ret = buf; + } else { + ret = NULL; + errno = ERANGE; + } + return ret; } -- 2.7.4