* [PATCH] Force requirement for filename option in cmd line
@ 2010-11-09 18:45 Gustavo F. Padovan
2010-11-09 23:07 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo F. Padovan @ 2010-11-09 18:45 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 740 bytes --]
---
src/main.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/main.cpp b/src/main.cpp
index d601ac2..d4327b1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -35,7 +35,7 @@ static void usage()
int main(int argc, char **argv)
{
QApplication app(argc, argv);
- QString filename;
+ QString filename = NULL;
int port = 12345;
int index;
bool with_gui = false;
@@ -71,6 +71,11 @@ int main(int argc, char **argv)
}
+ if (filename == NULL) {
+ qWarning() << "ERROR: filename must be the last argument";
+ usage();
+ }
+
PhoneSimServer *pss = new PhoneSimServer(filename, port, 0);
if (with_gui)
--
1.7.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Force requirement for filename option in cmd line
2010-11-09 18:45 [PATCH] Force requirement for filename option in cmd line Gustavo F. Padovan
@ 2010-11-09 23:07 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2010-11-09 23:07 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
Hi Gustavo,
On 11/09/2010 12:45 PM, Gustavo F. Padovan wrote:
> ---
> src/main.cpp | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
This patch has been applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-09 23:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-09 18:45 [PATCH] Force requirement for filename option in cmd line Gustavo F. Padovan
2010-11-09 23:07 ` Denis Kenzior
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.