projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2fa874f
)
code style
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Thu, 1 Dec 2011 12:27:06 +0000
(12:27 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Thu, 1 Dec 2011 12:27:06 +0000
(12:27 +0000)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
ae63a1e
..
9d25a5a
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-381,9
+381,8
@@
int main(int argc, char **argv)
struct ui_psensor ui;
GError *error;
GThread *thread;
struct ui_psensor ui;
GError *error;
GThread *thread;
- int optc;
+ int optc
, cmdok
;
char *url = NULL;
char *url = NULL;
- int cmdok = 1;
program_name = argv[0];
program_name = argv[0];
@@
-394,6
+393,7
@@
int main(int argc, char **argv)
textdomain(PACKAGE);
#endif
textdomain(PACKAGE);
#endif
+ cmdok = 1;
while ((optc = getopt_long(argc, argv, "vhd:u:", long_options,
NULL)) != -1) {
switch (optc) {
while ((optc = getopt_long(argc, argv, "vhd:u:", long_options,
NULL)) != -1) {
switch (optc) {
@@
-408,8
+408,8
@@
int main(int argc, char **argv)
print_version();
exit(EXIT_SUCCESS);
case 'd':
print_version();
exit(EXIT_SUCCESS);
case 'd':
- printf(_("Enables debug mode.\n"));
log_level = atoi(optarg);
log_level = atoi(optarg);
+ log_printf(LOG_INFO, _("Enables debug mode."));
break;
default:
cmdok = 0;
break;
default:
cmdok = 0;