From: Perki Pat <perki_pat3@yahoo.es>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] hcitool and argv syntax
Date: Sat, 29 Dec 2007 11:38:38 +0100 [thread overview]
Message-ID: <477623AE.7030107@yahoo.es> (raw)
In-Reply-To: <1198904400.4455.34.camel@aeonflux>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 653 bytes --]
>
> 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
[-- Attachment #2: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
prev parent reply other threads:[~2007-12-29 10:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-28 19:23 [Bluez-devel] hcitool and argv syntax Perki Pat
2007-12-28 22:39 ` Marcel Holtmann
2007-12-28 23:30 ` Perki Pat
2007-12-29 5:00 ` Marcel Holtmann
2007-12-29 10:38 ` Perki Pat [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=477623AE.7030107@yahoo.es \
--to=perki_pat3@yahoo.es \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.