OSDN Git Service
(root)
/
android-x86
/
external-exfat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b38628
)
dumpexfat: print version number only when requested.
author
Daniel Drake
<drake@endlessm.com>
Wed, 20 Jul 2016 18:13:56 +0000
(12:13 -0600)
committer
relan
<relan@users.noreply.github.com>
Mon, 5 Dec 2016 10:37:35 +0000
(13:37 +0300)
If the version number is printed only when the -V arg is given,
it's easier to use the output of this tool in external scripts.
dump/main.c
patch
|
blob
|
history
diff --git
a/dump/main.c
b/dump/main.c
index
a977582
..
fda5b9b
100644
(file)
--- a/
dump/main.c
+++ b/
dump/main.c
@@
-211,8
+211,6
@@
int main(int argc, char* argv[])
bool used_sectors = false;
const char* file_path = NULL;
- printf("dumpexfat %s\n", VERSION);
-
while ((opt = getopt(argc, argv, "suf:V")) != -1)
{
switch (opt)
@@
-227,6
+225,7
@@
int main(int argc, char* argv[])
file_path = optarg;
break;
case 'V':
+ printf("dumpexfat %s\n", VERSION);
puts("Copyright (C) 2011-2016 Andrew Nayenko");
return 0;
default: