From bdcabc1e059ba9415e8d1f8cb436c77545680670 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 11 Oct 2015 22:16:30 +0800 Subject: Add smDtpFileR::getFileCRC. Modify anmutil and dtputil. Make the example compatible with Arch Linux. --- tools/dtputil/anmutil.cpp | 5 +++-- tools/dtputil/dtputil.cpp | 5 +++-- tools/dtputil/makefile | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/dtputil/anmutil.cpp b/tools/dtputil/anmutil.cpp index 6636e2c..fd5d376 100644 --- a/tools/dtputil/anmutil.cpp +++ b/tools/dtputil/anmutil.cpp @@ -45,7 +45,7 @@ int main(int argc,char** argv) puts(c); char *ptr=file.getFilePtr(c); if(!ptr)printf("error\n");else - printf("size:%lu, first bytes:%c%c%c\n",file.getFileSize(c),*ptr,*(ptr+1),*(ptr+2)); + printf("size:%u, CRC 0x%08X\n",file.getFileSize(c),file.getFileCRC(c)); file.releaseFilePtr(c); } } @@ -53,7 +53,8 @@ int main(int argc,char** argv) for(int i=3;i