From 1fc586e88c9fd71fb253276438bc344929f4e8e1 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 22 Dec 2008 22:58:41 +0000 Subject: [PATCH] Use _getch instead of deprecated getch svn path=/trunk/; revision=38281 --- rosapps/applications/sysutils/utils/binpatch/patch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rosapps/applications/sysutils/utils/binpatch/patch.c b/rosapps/applications/sysutils/utils/binpatch/patch.c index c1a72c29c73..f30ece3aad8 100644 --- a/rosapps/applications/sysutils/utils/binpatch/patch.c +++ b/rosapps/applications/sysutils/utils/binpatch/patch.c @@ -444,7 +444,7 @@ applyPatch_file_open_error: printf("(S)kip, (R)etry, (A)bort, (M)anually enter filename"); do { - c = getch(); + c = _getch(); } while (c != 's' && c != 'r' && c != 'a' && c != 'm'); printf("\n"); @@ -496,7 +496,7 @@ applyPatch_file_open_error: printf("Do you want to make a backup of %s? (Y)es, (N)o, (A)bort", fileName); do { - c = getch(); + c = _getch(); } while (c != 'y' && c != 'n' && c != 'a'); printf("\n"); @@ -511,7 +511,7 @@ applyPatch_file_open_error: printf("File %s already exists, overwrite? (Y)es, (N)o, (A)bort", buffer); do { - c = getch(); + c = _getch(); } while (c != 'y' && c != 'n' && c != 'a'); printf("\n");