From: Pierre Habouzit Date: Sun, 18 Nov 2007 12:06:16 +0000 (+0100) Subject: spurious "sleep"s X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=a5fa2af549bea868843481ec567804555f6d9c58;p=apps%2Fmadmutt.git spurious "sleep"s Signed-off-by: Pierre Habouzit --- diff --git a/crypt.cpkg b/crypt.cpkg index 10a33b2..797a4b6 100644 --- a/crypt.cpkg +++ b/crypt.cpkg @@ -326,7 +326,7 @@ static gpgme_ctx_t create_gpgme_context(int for_smime) if (err) { mutt_error(_("error creating gpgme context: %s\n"), gpgme_strerror(err)); - sleep(2); + mutt_sleep(2); mutt_exit(1); } if (!for_smime) @@ -335,7 +335,7 @@ static gpgme_ctx_t create_gpgme_context(int for_smime) err = gpgme_set_protocol(ctx, GPGME_PROTOCOL_CMS); if (err) { mutt_error(_("error enabling CMS protocol: %s\n"), gpgme_strerror(err)); - sleep(2); + mutt_sleep(2); mutt_exit(1); } return ctx; @@ -352,7 +352,7 @@ static gpgme_data_t create_gpgme_data(void) if (err) { mutt_error(_("error creating gpgme data object: %s\n"), gpgme_strerror(err)); - sleep(2); + mutt_sleep(2); mutt_exit(1); } return data; diff --git a/lib-mx/mx.c b/lib-mx/mx.c index 6e84b10..23997aa 100644 --- a/lib-mx/mx.c +++ b/lib-mx/mx.c @@ -139,7 +139,7 @@ int mx_lock_file (const char *path, int fd, int excl, int dot, int time_out) prev_sb = sb; mutt_message (_("Waiting for fcntl lock... %d"), ++attempt); - sleep (1); + mutt_sleep (1); } #endif /* USE_FCNTL */ @@ -174,7 +174,7 @@ int mx_lock_file (const char *path, int fd, int excl, int dot, int time_out) prev_sb = sb; mutt_message (_("Waiting for flock attempt... %d"), ++attempt); - sleep (1); + mutt_sleep (1); } #endif /* USE_FLOCK */ diff --git a/send.c b/send.c index 55b8854..cd82ede 100644 --- a/send.c +++ b/send.c @@ -274,7 +274,7 @@ static int edit_envelope (ENVELOPE * en, int flags) } else { mutt_error (_("Ignoring $strip_was: Subject would be empty.")); - sleep (2); + mutt_sleep (2); } } if (mutt_get_field ("Subject: ", buf, sizeof (buf), 0) != 0 || (!buf[0] @@ -1438,7 +1438,7 @@ int ci_send_message (int flags, /* send mode */ if (quadoption (OPT_ATTACH) == M_YES) { mutt_message _("No attachments made but indicator found in text. " "Abort sending."); - sleep (2); + mutt_sleep (2); } mutt_message (_("Mail not sent.")); goto main_loop;