/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
else
{
- mLastTime = buf.st_mtime;
+ mLastTime = std::time_t(buf.st_mtime);
return false;
}
}
/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
else
{
const bool result = buf.st_mtime > mLastTime;
- mLastTime = buf.st_mtime;
+ mLastTime = std::time_t(buf.st_mtime);
return result;
}
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
// Skip the key-values:
- if(fseek(fp, header.bytesOfKeyValueData, SEEK_CUR))
+ if(fseek(fp, (long int)(header.bytesOfKeyValueData), SEEK_CUR))
{
return false;
}