gcc complains of the above construct:
sink.c: In function `is_quad':
sink.c:654: warning: suggest explicit braces to avoid ambiguous `else'
Here is a patch to fix that:
===============================================
diff -Naur fetchmail-5.9.13.orig/sink.c fetchmail-5.9.13/sink.c
--- fetchmail-5.9.13.orig/sink.c Sun Jun 23 02:23:58 2002
+++ fetchmail-5.9.13/sink.c Tue Jun 25 11:23:25 2002
@@ -652,6 +652,7 @@
return NULL;
/* Make sure quad is < 255 */
if ( (r-q) == 3)
+ {
if (*q > '2')
return NULL;
else if (*q == '2')
@@ -664,6 +665,7 @@
return NULL;
}
}
+ }
return r;
}
===============================================
Sunil Shetye.