-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7cfb07
commit 01c9d16
Showing
3 changed files
with
10 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,12 +43,12 @@ uint32_t opt_sectors_per_cluster; | |
/* | ||
* Die and print usage message. | ||
*/ | ||
static boolean die_with_usage; | ||
boolean die_with_usage; | ||
|
||
/* | ||
* Tool usage. | ||
*/ | ||
static void usage (void) | ||
void usage (void) | ||
{ | ||
fprintf(stderr, | ||
"fatdisk, version " VERSION "\n\n" | ||
|
@@ -198,16 +198,7 @@ static void usage (void) | |
fprintf(stderr, "\n"); | ||
fprintf(stderr, "Written by Neil McGill, [email protected], with special thanks\n"); | ||
fprintf(stderr, "to Donald Sharp, Andy Dalton and Mike Woods\n"); | ||
} | ||
|
||
/* | ||
* usage_short | ||
* | ||
* Short help | ||
*/ | ||
static void usage_short (void) | ||
{ | ||
fprintf(stderr, "Enter \"fatdisk --help\" for usage\n"); | ||
fprintf(stderr, "\nfatdisk, version " VERSION "\n\n"); | ||
} | ||
|
||
/* | ||
|
@@ -240,10 +231,6 @@ void die (void) | |
{ | ||
quit(); | ||
|
||
if (die_with_usage) { | ||
usage_short(); | ||
} | ||
|
||
exit(1); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters