Skip to content

Commit

Permalink
convert to 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Mortensen committed Jun 14, 2016
1 parent dc6caba commit ed9c2c8
Show file tree
Hide file tree
Showing 50 changed files with 680 additions and 675 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -45,6 +45,9 @@
win32/ipch
win32/BuildErrors.txt
win32/BuildErrors-64bit.txt
win32/.vs
win32/tsk-win.VC.VC.opendb
win32/tsk-win.VC.db
framework/msvcpp/framework/Debug/
framework/msvcpp/framework/Release/
framework/msvcpp/*/*.user
Expand Down
Expand Up @@ -50,7 +50,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(TSK_HOME);$(TSK_HOME)\framework;$(POCO_HOME)\Foundation\include;$(POCO_HOME)\Util\include;$(ProjectDir)\..\file-5.08\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
Expand Down Expand Up @@ -79,7 +79,7 @@ copy /Y "$(ProjectDir)..\file-5.08\magic\magic.mgc" "$(ProjectDir)..\..\..\runti
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>$(TSK_HOME);$(TSK_HOME)\framework;$(POCO_HOME)\Foundation\include;$(POCO_HOME)\Util\include;$(ProjectDir)\..\file-5.08\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
Expand Down
Expand Up @@ -50,15 +50,15 @@
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<PreprocessorDefinitions>GETTEXT_PACKAGE="libexif-12";LOCALEDIR=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>GETTEXT_PACKAGE="libexif-12";LOCALEDIR=;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>.;..\..\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>GETTEXT_PACKAGE="libexif-12";LOCALEDIR=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>GETTEXT_PACKAGE="libexif-12";LOCALEDIR=;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<WarningLevel>Level3</WarningLevel>
Expand Down
Expand Up @@ -50,7 +50,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(TSK_HOME);$(TSK_HOME)\framework;$(POCO_HOME)\Foundation\include;$(POCO_HOME)\Util\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;HASHCALCMODULE_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;HASHCALCMODULE_EXPORTS;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
Expand All @@ -75,7 +75,7 @@
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>$(TSK_HOME);$(TSK_HOME)\framework;$(POCO_HOME)\Foundation\include;$(POCO_HOME)\Util\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;HASHCALCMODULE_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;HASHCALCMODULE_EXPORTS;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
Expand Down
4 changes: 2 additions & 2 deletions framework/msvcpp/framework/framework.vcxproj
Expand Up @@ -47,7 +47,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(ProjectDir)\..\..;$(ProjectDir)\..\..\..;$(POCO_HOME)\Foundation\include;$(POCO_HOME)\Util\include;$(POCO_HOME)\XML\include;$(POCO_HOME)\Net\include;$(LIBEWF_HOME)\common;$(LIBEWF_HOME)\include;$(ProjectDir)\..\..\..\tsk\img;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;TSK_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;TSK_EXPORTS;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
Expand Down Expand Up @@ -81,7 +81,7 @@ ren "$(ProjectDir)..\..\runtime\framework_config_win32dev.xml" framework_config.
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>$(ProjectDir)\..\..;$(ProjectDir)\..\..\..;$(POCO_HOME)\Foundation\include;$(POCO_HOME)\Util\include;$(POCO_HOME)\XML\include;$(POCO_HOME)\Net\include;$(LIBEWF_HOME)\common;$(LIBEWF_HOME)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;TSK_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;TSK_EXPORTS;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
Expand Down
4 changes: 2 additions & 2 deletions framework/msvcpp/tsk_analyzeimg/tsk_analyzeimg.vcxproj
Expand Up @@ -48,7 +48,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(POCO_HOME)/XML/include/;$(POCO_HOME)/Foundation/include/;$(ProjectDir)../../..;$(ProjectDir)../..;$(POCO_HOME)/Util/include/;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
Expand All @@ -73,7 +73,7 @@
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>$(POCO_HOME)/XML/include/;$(POCO_HOME)/Foundation/include/;$(ProjectDir)../../..;$(ProjectDir)../..;$(POCO_HOME)/Util/include/;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
Expand Down
Expand Up @@ -48,7 +48,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(POCO_HOME)\Util\include;$(POCO_HOME)\XML\include;$(POCO_HOME)\Foundation\include;$(ProjectDir)/../../..;$(ProjectDir)/../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;POCO_NO_UNWINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;POCO_NO_UNWINDOWS;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
Expand All @@ -73,7 +73,7 @@
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>$(POCO_HOME)\Util\include;$(POCO_HOME)\XML\include;$(POCO_HOME)\Foundation\include;$(ProjectDir)/../../..;$(ProjectDir)/../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;POCO_NO_UNWINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;POCO_NO_UNWINDOWS;WINVER=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
Expand Down
6 changes: 3 additions & 3 deletions rejistry++/msvcpp/Rejistry/Rejistry.vcxproj
Expand Up @@ -43,7 +43,7 @@
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
Expand All @@ -62,14 +62,14 @@
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_NoLibs|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down
4 changes: 2 additions & 2 deletions tools/hashtools/hfind.cpp
Expand Up @@ -151,11 +151,11 @@ main(int argc, char ** argv1)
TSK_TCHAR *ext = TSTRRCHR(db_file, _TSK_T('.'));
if ((NULL != ext) && (TSTRLEN(ext) >= 4) && (TSTRCMP(ext, _TSK_T(".kdb")) == 0)) {
if (0 == tsk_hdb_create(db_file)) {
tsk_fprintf(stdout, "New database %"PRIttocTSK" created\n", db_file);
tsk_fprintf(stdout, "New database %" PRIttocTSK" created\n", db_file);
return 0;
}
else {
tsk_fprintf(stderr, "Failed to create new database %"PRIttocTSK"\n", db_file);
tsk_fprintf(stderr, "Failed to create new database %" PRIttocTSK"\n", db_file);
return 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion tsk/auto/auto_db.cpp
Expand Up @@ -850,7 +850,7 @@ TSK_RETVAL_ENUM TskAutoDb::addFsInfoUnalloc(const TSK_DB_FS_INFO & dbFsInfo) {
//open the fs we have from database
TSK_FS_INFO * fsInfo = tsk_fs_open_img(m_img_info, dbFsInfo.imgOffset, dbFsInfo.fType);
if (fsInfo == NULL) {
tsk_error_set_errstr2("TskAutoDb::addFsInfoUnalloc: error opening fs at offset %"PRIuOFF, dbFsInfo.imgOffset);
tsk_error_set_errstr2("TskAutoDb::addFsInfoUnalloc: error opening fs at offset %" PRIuOFF, dbFsInfo.imgOffset);
registerError();
return TSK_ERR;
}
Expand Down
10 changes: 5 additions & 5 deletions tsk/auto/db_postgresql.cpp
Expand Up @@ -734,7 +734,7 @@ int TskDbPostgreSQL::addImageInfo(int type, TSK_OFF_T ssize, int64_t & objId, co
PQfreemem(md5_sql);
return 1;
}
snprintf(stmt, 2048, "INSERT INTO tsk_image_info (obj_id, type, ssize, tzone, size, md5) VALUES (%lld, %d, %d, %s, %"PRIuOFF", %s);",
snprintf(stmt, 2048, "INSERT INTO tsk_image_info (obj_id, type, ssize, tzone, size, md5) VALUES (%lld, %d, %d, %s, %" PRIuOFF ", %s);",
objId, type, ssize, timezone_sql, size, md5_sql);
int ret = attempt_exec(stmt, "Error adding data to tsk_image_info table: %s\n");
PQfreemem(timezone_sql);
Expand Down Expand Up @@ -1196,7 +1196,7 @@ TSK_RETVAL_ENUM TskDbPostgreSQL::getFsInfos(int64_t imgId, vector<TSK_DB_FS_INFO
if (getParentImageId(fsObjId, curImgId) == TSK_ERR) {
tsk_error_reset();
tsk_error_set_errno(TSK_ERR_AUTO_DB);
tsk_error_set_errstr("Error finding parent for: %"PRIu64, fsObjId);
tsk_error_set_errstr("Error finding parent for: %" PRIu64 , fsObjId);
return TSK_ERR;
}

Expand Down Expand Up @@ -1538,7 +1538,7 @@ TSK_RETVAL_ENUM TskDbPostgreSQL::addLayoutFileInfo(const int64_t parObjId, const
char *fsObjIdStrPtr = NULL;
char fsObjIdStr[32];
if (fsObjId != 0) {
snprintf(fsObjIdStr, 32, "%"PRIu64, fsObjId);
snprintf(fsObjIdStr, 32, "%" PRIu64 , fsObjId);
fsObjIdStrPtr = fsObjIdStr;
} else {
fsObjIdStrPtr = &nullStr[0];
Expand Down Expand Up @@ -1676,7 +1676,7 @@ TSK_RETVAL_ENUM TskDbPostgreSQL::getVsPartInfos(int64_t imgId, vector<TSK_DB_VS_
if (getParentImageId(vsPartObjId, curImgId) == TSK_ERR) {
tsk_error_reset();
tsk_error_set_errno(TSK_ERR_AUTO_DB);
tsk_error_set_errstr("Error finding parent for: %"PRIu64, vsPartObjId);
tsk_error_set_errstr("Error finding parent for: %" PRIu64 , vsPartObjId);
return TSK_ERR;
}

Expand Down Expand Up @@ -1804,7 +1804,7 @@ TSK_RETVAL_ENUM TskDbPostgreSQL::getVsInfos(int64_t imgId, vector<TSK_DB_VS_INFO
if (getParentImageId(vsObjId, curImgId) == TSK_ERR) {
tsk_error_reset();
tsk_error_set_errno(TSK_ERR_AUTO_DB);
tsk_error_set_errstr("Error finding parent for: %"PRIu64, vsObjId);
tsk_error_set_errstr("Error finding parent for: %" PRIu64 , vsObjId);
PQclear(res);
return TSK_ERR;
}
Expand Down
12 changes: 6 additions & 6 deletions tsk/auto/db_sqlite.cpp
Expand Up @@ -492,7 +492,7 @@ int TskDbSqlite::addImageInfo(int type, TSK_OFF_T ssize, int64_t & objId, const

// Add the data source to the tsk_image_info table.
char *sql;
sql = sqlite3_mprintf("INSERT INTO tsk_image_info (obj_id, type, ssize, tzone, size, md5) VALUES (%lld, %d, %d, '%q', %"PRIuOFF", '%q');",
sql = sqlite3_mprintf("INSERT INTO tsk_image_info (obj_id, type, ssize, tzone, size, md5) VALUES (%lld, %d, %d, '%q', %" PRIuOFF ", '%q');",
objId, type, ssize, timezone.c_str(), size, md5.c_str());
int ret = attempt_exec(sql, "Error adding data to tsk_image_info table: %s\n");
sqlite3_free(sql);
Expand Down Expand Up @@ -770,7 +770,7 @@ int64_t TskDbSqlite::findParObjId(const TSK_FS_FILE * fs_file, const char *paren
}
}

// fprintf(stderr, "Miss: %s (%"PRIu64 " - %" PRIu64 ")\n", fs_file->name->name, fs_file->name->meta_addr,
// fprintf(stderr, "Miss: %s (%" PRIu64 " - %" PRIu64 ")\n", fs_file->name->name, fs_file->name->meta_addr,
// fs_file->name->par_addr);

// Need to break up 'path' in to the parent folder to match in 'parent_path' and the folder
Expand Down Expand Up @@ -1086,7 +1086,7 @@ TSK_RETVAL_ENUM
char *fsObjIdStrPtr = NULL;
char fsObjIdStr[32];
if (fsObjId != 0) {
snprintf(fsObjIdStr, 32, "%"PRIu64, fsObjId);
snprintf(fsObjIdStr, 32, "%" PRIu64 , fsObjId);
fsObjIdStrPtr = fsObjIdStr;
}

Expand Down Expand Up @@ -1470,7 +1470,7 @@ TSK_RETVAL_ENUM TskDbSqlite::getFsInfos(int64_t imgId, vector<TSK_DB_FS_INFO> &
if (getParentImageId(fsObjId, curImgId) == TSK_ERR) {
tsk_error_reset();
tsk_error_set_errno(TSK_ERR_AUTO_DB);
tsk_error_set_errstr("Error finding parent for: %"PRIu64, fsObjId);
tsk_error_set_errstr("Error finding parent for: %" PRIu64 , fsObjId);
return TSK_ERR;
}

Expand Down Expand Up @@ -1523,7 +1523,7 @@ TSK_RETVAL_ENUM TskDbSqlite::getVsInfos(int64_t imgId, vector<TSK_DB_VS_INFO> &
if (getParentImageId(vsObjId, curImgId) == TSK_ERR) {
tsk_error_reset();
tsk_error_set_errno(TSK_ERR_AUTO_DB);
tsk_error_set_errstr("Error finding parent for: %"PRIu64, vsObjId);
tsk_error_set_errstr("Error finding parent for: %" PRIu64 , vsObjId);
return TSK_ERR;
}

Expand Down Expand Up @@ -1573,7 +1573,7 @@ TSK_RETVAL_ENUM TskDbSqlite::getVsPartInfos(int64_t imgId, vector<TSK_DB_VS_PART
if (getParentImageId(vsPartObjId, curImgId) == TSK_ERR) {
tsk_error_reset();
tsk_error_set_errno(TSK_ERR_AUTO_DB);
tsk_error_set_errstr("Error finding parent for: %"PRIu64, vsPartObjId);
tsk_error_set_errstr("Error finding parent for: %" PRIu64 , vsPartObjId);
return TSK_ERR;
}

Expand Down
4 changes: 2 additions & 2 deletions tsk/base/mymalloc.c
Expand Up @@ -32,7 +32,7 @@ tsk_malloc(size_t len)
if ((ptr = malloc(len)) == 0) {
tsk_error_reset();
tsk_error_set_errno(TSK_ERR_AUX_MALLOC);
tsk_error_set_errstr("tsk_malloc: %s (%"PRIuSIZE" requested)", strerror(errno), len);
tsk_error_set_errstr("tsk_malloc: %s (%" PRIuSIZE" requested)", strerror(errno), len);
}
else {
memset(ptr, 0, len);
Expand All @@ -47,7 +47,7 @@ tsk_realloc(void *ptr, size_t len)
if ((ptr = realloc(ptr, len)) == 0) {
tsk_error_reset();
tsk_error_set_errno(TSK_ERR_AUX_MALLOC);
tsk_error_set_errstr("tsk_realloc: %s (%"PRIuSIZE" requested)", strerror(errno), len);
tsk_error_set_errstr("tsk_realloc: %s (%" PRIuSIZE" requested)", strerror(errno), len);
}
return (ptr);
}
2 changes: 1 addition & 1 deletion tsk/fs/exfatfs.c
Expand Up @@ -125,7 +125,7 @@ exfatfs_get_fs_layout(FATFS_INFO *a_fatfs)
tsk_error_set_errno(TSK_ERR_FS_MAGIC);
tsk_error_set_errstr("Not an exFAT file system (invalid volume length)");
if (tsk_verbose) {
fprintf(stderr, "%s: Invalid volume length in sectors (%"PRIu64")\n", func_name, vol_len_in_sectors);
fprintf(stderr, "%s: Invalid volume length in sectors (%" PRIu64 ")\n", func_name, vol_len_in_sectors);
}
return FATFS_FAIL;
}
Expand Down
6 changes: 3 additions & 3 deletions tsk/fs/fs_name.c
Expand Up @@ -334,7 +334,7 @@ tsk_fs_time_to_str(time_t time, char buf[128])
(int) tmTime->tm_mon + 1, (int) tmTime->tm_mday,
tmTime->tm_hour,
(int) tmTime->tm_min, (int) tmTime->tm_sec,
tzname[(tmTime->tm_isdst == 0) ? 0 : 1]);
_tzname[(tmTime->tm_isdst == 0) ? 0 : 1]);
}
return buf;
}
Expand Down Expand Up @@ -363,7 +363,7 @@ tsk_fs_time_to_str_subsecs(time_t time, unsigned int subsecs,
(int) tmTime->tm_mon + 1, (int) tmTime->tm_mday,
tmTime->tm_hour,
(int) tmTime->tm_min, (int) tmTime->tm_sec,
subsecs, tzname[(tmTime->tm_isdst == 0) ? 0 : 1]);
subsecs, _tzname[(tmTime->tm_isdst == 0) ? 0 : 1]);
}
return buf;
}
Expand Down Expand Up @@ -402,7 +402,7 @@ tsk_fs_print_day(FILE * hFile, time_t time)
tsk_fprintf(hFile, "%.4d-%.2d-%.2d 00:00:00 (%s)",
(int) tmTime->tm_year + 1900,
(int) tmTime->tm_mon + 1, (int) tmTime->tm_mday,
tzname[(tmTime->tm_isdst == 0) ? 0 : 1]);
_tzname[(tmTime->tm_isdst == 0) ? 0 : 1]);
}
}

Expand Down

0 comments on commit ed9c2c8

Please sign in to comment.