This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch main in repository gfs2-utils.
commit 7a51c8b16f6b40f505ff230966ff0e9502f994ab Author: Andrew Price anprice@redhat.com AuthorDate: Mon Jan 17 11:58:08 2022 +0000
gfs2_edit: Fix usage of getch()
This function blocks so there's no need to call it in a loop.
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/edit/hexedit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c index 773fbb39..051f88c1 100644 --- a/gfs2/edit/hexedit.c +++ b/gfs2/edit/hexedit.c @@ -238,8 +238,6 @@ static void gfs2instr(const char *s1, const char *s2)
static void print_usage(void) { - int ch; - line = 2; Erase(); display_title_lines(); @@ -280,7 +278,7 @@ static void print_usage(void) move(line++, 0); printw("Press any key to return."); refresh(); - while ((ch=getch()) == 0); // wait for input + getch(); // wait for input Erase(); }
cluster-commits@lists.fedorahosted.org