Run Nindent on com32/lib/getcwd.c
authorH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:23 +0000 (15:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:23 +0000 (15:10 -0700)
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 <hpa@zytor.com>
com32/lib/getcwd.c

index bb0a30d..38fae52 100644 (file)
 
 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, &reg, &reg);
-       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, &reg, &reg);
+    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;
 }