Run Nindent on com32/lib/opendir.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/opendir.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/opendir.c

index aa2ba5b..6fc0f14 100644 (file)
 #include <unistd.h>
 #include <fcntl.h>
 
-
 DIR *opendir(const char *pathname)
 {
-       DIR *newdir;
-       com32sys_t regs;
+    DIR *newdir;
+    com32sys_t regs;
 
-       newdir = NULL;
+    newdir = NULL;
 
-       strlcpy(__com32.cs_bounce, pathname, __com32.cs_bounce_size);
+    strlcpy(__com32.cs_bounce, pathname, __com32.cs_bounce_size);
 
-       regs.eax.w[0] = 0x0020;
-       regs.esi.w[0] = OFFS(__com32.cs_bounce);
-       regs.es = SEG(__com32.cs_bounce);
+    regs.eax.w[0] = 0x0020;
+    regs.esi.w[0] = OFFS(__com32.cs_bounce);
+    regs.es = SEG(__com32.cs_bounce);
 
-       __com32.cs_intcall(0x22, &regs, &regs);
+    __com32.cs_intcall(0x22, &regs, &regs);
 
-       if (!(regs.eflags.l & EFLAGS_CF)) {
-               /* Initialization: malloc() then zero */
-               newdir = calloc(1, sizeof(DIR));
-               strcpy(newdir->dd_name, pathname);
-               newdir->dd_fd = regs.esi.w[0];
-               newdir->dd_sect = regs.eax.l;
-               newdir->dd_stat = 0;
-       }
+    if (!(regs.eflags.l & EFLAGS_CF)) {
+       /* Initialization: malloc() then zero */
+       newdir = calloc(1, sizeof(DIR));
+       strcpy(newdir->dd_name, pathname);
+       newdir->dd_fd = regs.esi.w[0];
+       newdir->dd_sect = regs.eax.l;
+       newdir->dd_stat = 0;
+    }
 
-       /* We're done */
-       return newdir;
+    /* We're done */
+    return newdir;
 }