Skip to content

Commit

Permalink
remove unused conio.h includes
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann committed Feb 5, 2024
1 parent fb3a37a commit dd7fba1
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion source/fdisk/cmd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <conio.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion source/fdisk/fdiskio.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#define FDISKIO

#include <conio.h>
#include <dos.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion source/fdisk/kbdinput.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

#define KBDINPUT

#include <conio.h>
#include <ctype.h>
#ifndef __WATCOMC__
#include <dir.h>
Expand Down
6 changes: 2 additions & 4 deletions source/fdisk/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define MAIN

#include <conio.h>
#include <ctype.h>
#include <dos.h>
#include <stdarg.h>
Expand Down Expand Up @@ -457,9 +456,8 @@ int main( int argc, char *argv[] )

InitOptions( environ );

/* Check if LBA is forbidden by the user before querying BIOS
capabilities, because some BIOS INT13,41h is broken, like
XT-IDE 2.03 beta without LBA support */
/* Check if LBA is forbidden by the user before trying to query LBA BIOS
capabilities. Some 8088 BIOSes crash otherwise. */
argp = argv+1;
while ( *argp ) {
if ( !strcmp( *argp, "/x" ) || !strcmp( *argp, "/X" ) ) {
Expand Down
1 change: 0 additions & 1 deletion source/fdisk/pdiskio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "main.h"

#include <bios.h>
#include <conio.h>
#include <dos.h>
#include <i86.h>
#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion source/fdisk/userint1.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#define USERINTM

#include <conio.h>
#include <ctype.h>
#ifndef __WATCOMC__
#include <dir.h>
Expand Down
1 change: 0 additions & 1 deletion source/fdisk/userint2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#define USERINT

#include <conio.h>
#include <ctype.h>
#ifndef __WATCOMC__
#include <dir.h>
Expand Down

0 comments on commit dd7fba1

Please sign in to comment.