On Sun, May 01, 2011 at 07:38:27PM +0200, Marek Polacek wrote:
> > +int portmap_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
> > +int portmap_main(int argc, char **argv)
> > +{
> > +   char *host = (char *)"0.0.0.0";
> 

This cast is a no-op. 

> This doesn't seem right.  I think the `host' should be const char *, since
> the `create_and_bind_{stream,dgram}_or_die' expect const char *.

Passing char * where const char * is expected is perfectly valid.

Rich
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to