From: H. Peter Anvin Date: Fri, 29 May 2009 22:10:23 +0000 (-0700) Subject: Run Nindent on com32/lib/closedir.c X-Git-Tag: syslinux-3.83-pre2~345 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fe0b6d8988bc100d4d24a21eb000d9550c8f0c7;p=platform%2Fupstream%2Fsyslinux.git Run Nindent on com32/lib/closedir.c Automatically reformat com32/lib/closedir.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/closedir.c b/com32/lib/closedir.c index 8a0430e..f8bbbab 100644 --- a/com32/lib/closedir.c +++ b/com32/lib/closedir.c @@ -11,19 +11,19 @@ #include #include -int closedir(DIR *dir) +int closedir(DIR * dir) { - int rv; - com32sys_t regs; - if (dir == NULL) { - rv = 0; - } else { - memset(®s, 0, sizeof regs); /* ?Needed? */ - regs.eax.w[0] = 0x0022; - regs.esi.w[0] = dir->dd_fd; - __com32.cs_intcall(0x22, ®s, ®s); - free(dir); /* garbage collection? */ - rv = 0; - } - return rv; + int rv; + com32sys_t regs; + if (dir == NULL) { + rv = 0; + } else { + memset(®s, 0, sizeof regs); /* ?Needed? */ + regs.eax.w[0] = 0x0022; + regs.esi.w[0] = dir->dd_fd; + __com32.cs_intcall(0x22, ®s, ®s); + free(dir); /* garbage collection? */ + rv = 0; + } + return rv; }