From 0e9925f122cbde8659dba715799f56ce6c765a84 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Mon, 26 Jun 2017 16:54:50 +1000 Subject: [PATCH] Minor simplification to beep_em --- source/ircaux.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/ircaux.c b/source/ircaux.c index 81967f7..259a0b3 100644 --- a/source/ircaux.c +++ b/source/ircaux.c @@ -1321,15 +1321,12 @@ int BX_end_strcmp (const char *one, const char *two, int bytes) /* beep_em: Not hard to figure this one out */ void BX_beep_em (int beeps) { - int cnt, - i; + int i; - for (cnt = beeps, i = 0; i < cnt; i++) + for (i = 0; i < beeps; i++) term_beep(); } - - FILE *open_compression (char *executable, char *filename, int hook) { FILE *file_pointer = NULL;