> > You have to use "return 0". Otherwise you get a compiler warning. I got no warning with GCC 4.1.3. Anyways, here is the new patch: --- hcitool.c.orig 2007-12-28 20:06:58.000000000 +0100 +++ hcitool.c 2007-12-29 11:35:00.000000000 +0100 @@ -2329,5 +2329,11 @@ command[i].func(dev_id, argc, argv); break; } + + if(!command[i].cmd) { + fprintf(stderr, "\"%s\" isn't a valid command. Try --help for a list of commands.\n", argv[0]); + exit(1); + } + return 0; } ______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com