aboutsummaryrefslogtreecommitdiffstats
path: root/btrfs-crc.c
diff options
context:
space:
mode:
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>2016-06-02 17:06:37 +0900
committerDavid Sterba <dsterba@suse.com>2016-06-03 14:49:42 +0200
commitaf4fe0551fe99a648921ed16ba49d4fb2aaa9b25 (patch)
tree58bb8ec34b0142d7880cfcef5f749f06689ef899 /btrfs-crc.c
parent835ce31a03ffe774dd11dd7aa00a449f57fd090f (diff)
downloadbtrfs-progs-af4fe0551fe99a648921ed16ba49d4fb2aaa9b25.tar.gz
btrfs-progs-af4fe0551fe99a648921ed16ba49d4fb2aaa9b25.tar.xz
btrfs-progs-af4fe0551fe99a648921ed16ba49d4fb2aaa9b25.zip
btrfs-progs: btrfs-crc: fix build error
Remove the following build error. ==================================== $ make btrfs-crc [CC] btrfs-crc.o [LD] btrfs-crc btrfs-crc.o: In function `usage': /home/sat/src/btrfs-progs/btrfs-crc.c:26: multiple definition of `usage' help.o:/home/sat/src/btrfs-progs/help.c:125: first defined here collect2: error: ld returned 1 exit status Makefile:294: recipe for target 'btrfs-crc' failed make: *** [btrfs-crc] Error 1 ===================================== Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-crc.c')
-rw-r--r--btrfs-crc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/btrfs-crc.c b/btrfs-crc.c
index 1ef00eb..e689ed4 100644
--- a/btrfs-crc.c
+++ b/btrfs-crc.c
@@ -22,7 +22,7 @@
#include "crc32c.h"
#include "utils.h"
-void usage(void)
+void print_usage(void)
{
printf("usage: btrfs-crc filename\n");
printf(" print out the btrfs crc for \"filename\"\n");
@@ -57,7 +57,7 @@ int main(int argc, char **argv)
seed = atoll(optarg);
break;
case 'h':
- usage();
+ print_usage();
case '?':
return 255;
}