Quite right too, I prefer all the declarations, codeless, up front. The
standard -Wall didn't pick this up. David pointed it out, probably due
to his defaults of `-pedantic -ansi'.
{
int i;
for (i = 0; i < LOCK_RETRIES; ++i) {
+ struct stat st;
+
/* attempt to create lock file */
if (lockit (&lkinfo) == 0) {
/* if successful, turn on timer and return */
* we can stat the lockfile but exceed LOCK_RETRIES
* seconds waiting for it (by falling out of the loop).
*/
- struct stat st;
if (stat (lkinfo.curlock, &st) == -1) {
if (i++ > 5) break;
sleep (1);
if (poprint)
fprintf (stderr, "<--- %s\n", response);
if (*response == '+') {
+ nmh_creds_t creds;
+
if (sasl) {
char server_mechs[256];
if (check_mech(server_mechs, sizeof(server_mechs)) != OK)
}
return OK;
}
- nmh_creds_t creds;
if (!(creds = nmh_get_credentials(host, user)))
return NOTOK;