aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib/disk/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/gpllib/disk/util.c')
-rw-r--r--com32/gpllib/disk/util.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/com32/gpllib/disk/util.c b/com32/gpllib/disk/util.c
index 6faac399..59c0328f 100644
--- a/com32/gpllib/disk/util.c
+++ b/com32/gpllib/disk/util.c
@@ -26,19 +26,20 @@
*
* Call int 13h, but with retry on failure. Especially floppies need this.
**/
-int int13_retry(const com32sys_t *inreg, com32sys_t *outreg)
+int int13_retry(const com32sys_t * inreg, com32sys_t * outreg)
{
- int retry = MAX_NB_RETRIES; /* Number of retries */
- com32sys_t tmpregs;
+ int retry = MAX_NB_RETRIES; /* Number of retries */
+ com32sys_t tmpregs;
- if ( !outreg ) outreg = &tmpregs;
+ if (!outreg)
+ outreg = &tmpregs;
- while ( retry-- ) {
- __intcall(0x13, inreg, outreg);
- if ( !(outreg->eflags.l & EFLAGS_CF) )
- return 0; /* CF=0 => OK */
- }
+ while (retry--) {
+ __intcall(0x13, inreg, outreg);
+ if (!(outreg->eflags.l & EFLAGS_CF))
+ return 0; /* CF=0 => OK */
+ }
- /* If we get here: error */
- return -1;
+ /* If we get here: error */
+ return -1;
}