summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f1595ee)
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) {
{
int i;
for (i = 0; i < LOCK_RETRIES; ++i) {
/* attempt to create lock file */
if (lockit (&lkinfo) == 0) {
/* if successful, turn on timer and return */
/* 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).
*/
* we can stat the lockfile but exceed LOCK_RETRIES
* seconds waiting for it (by falling out of the loop).
*/
if (stat (lkinfo.curlock, &st) == -1) {
if (i++ > 5) break;
sleep (1);
if (stat (lkinfo.curlock, &st) == -1) {
if (i++ > 5) break;
sleep (1);
if (poprint)
fprintf (stderr, "<--- %s\n", response);
if (*response == '+') {
if (poprint)
fprintf (stderr, "<--- %s\n", response);
if (*response == '+') {
if (sasl) {
char server_mechs[256];
if (check_mech(server_mechs, sizeof(server_mechs)) != OK)
if (sasl) {
char server_mechs[256];
if (check_mech(server_mechs, sizeof(server_mechs)) != OK)
if (!(creds = nmh_get_credentials(host, user)))
return NOTOK;
if (!(creds = nmh_get_credentials(host, user)))
return NOTOK;