diff -urN igmpproxy-0.1-orig/src/igmpproxy.c igmpproxy-0.1/src/igmpproxy.c
--- igmpproxy-0.1-orig/src/igmpproxy.c	2010-04-30 16:07:48.000000000 +0800
+++ igmpproxy-0.1/src/igmpproxy.c	2010-04-30 15:22:07.000000000 +0800
@@ -72,7 +72,8 @@
 int main( int ArgCn, char *ArgVc[] ) {
 
     // Parse the commandline options and setup basic settings..
-    for (int c; (c = getopt(ArgCn, ArgVc, "vdh")) != -1;) {
+    int c;
+    while((c = getopt(ArgCn, ArgVc, "vdh")) != -1) {
         switch (c) {
         case 'd':
             Log2Stderr = true;

