Btrfs-progs: btrfs-crc: support specifying checksum in hex

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
This commit is contained in:
Stefan Behrens 2013-04-22 12:17:51 +02:00 committed by David Sterba
parent 2417dd4cc9
commit b0d43ad859

View File

@ -49,7 +49,7 @@ int main(int argc, char **argv)
length = atol(optarg); length = atol(optarg);
break; break;
case 'c': case 'c':
checksum = atol(optarg); sscanf(optarg, "%li", &checksum);
loop = 1; loop = 1;
break; break;
case 's': case 's':