]> git.neil.brown.name Git - portmap.git/commitdiff
portmap.c: suppressed warning on assigning an non-const value to optarg
authorEnrico Weigelt, metux IT service <weigelt@metux.de>
Sun, 22 Feb 2009 19:05:40 +0000 (20:05 +0100)
committerEnrico Weigelt, metux IT service <weigelt@metux.de>
Sun, 22 Feb 2009 19:05:40 +0000 (20:05 +0100)
portmap.c

index 46bf7c53977266f783f4a04be53267660fa6d6d8..40440d969f68212eca8cb3d5bbd7b38a20c31da4 100644 (file)
--- a/portmap.c
+++ b/portmap.c
@@ -264,7 +264,7 @@ main(int argc, char **argv)
                        break;
 
                case 'l':
-                       optarg = "127.0.0.1";
+                       optarg = (char*)"127.0.0.1";
                        /* FALL THROUGH */
                case 'i':
                        have_bindaddr = inet_aton(optarg, &bindaddr);