[Verification] Code compiles without errors.
Change-Id: I588a1d08f4dea4a19038653b2889a1daa5b45673
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
// Get file length
fseek(m_input_file, 0, SEEK_END);
const size_t in_file_size = ftell(m_input_file);
- fseek(m_input_file, 0, SEEK_SET);
+ int res = fseek(m_input_file, 0, SEEK_SET);
+ if (0 != res) {
+ return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "Reading input file failed",
+ ("fseek failed with error! [%d]", res));
+ }
LoggerD("Source file: [%s] size: %d - %s", src_file_path.c_str(), in_file_size,
bytesToReadableString(in_file_size).c_str());
("Couldn't open Jpeg file: [%s]", path.c_str()));
}
- fseek(m_in_file, 0, SEEK_END);
+ int res = fseek(m_in_file, 0, SEEK_END);
+ if (0 != res) {
+ return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "Reading JPEG file failed",
+ ("fseek failed with error! [%d]", res));
+ }
long ftell_val = ftell(m_in_file);
if (0 > ftell_val) {
return ConvertRecordedTime(data, obj);
};
- monitors_.insert(std::make_pair(kActivityTypePedometer,
- std::make_shared<Monitor::PedometerMonitor>()));
+ monitors_.insert(
+ std::make_pair(kActivityTypePedometer, std::make_shared<Monitor::PedometerMonitor>()));
monitors_.insert(std::make_pair(kActivityTypeWristUp,
std::make_shared<Monitor::GestureMonitor>(kActivityTypeWristUp)));
monitors_.insert(std::make_pair(