Skip to content

Commit 1f3d0b0

Browse files
sedmichaLukas Hutak
authored andcommitted
Iemgr: Rename parameter for consistency
1 parent e1c1c94 commit 1f3d0b0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/iemgr/iemgr_mapping.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,17 +251,17 @@ read_item(fds_iemgr_t *mgr, fds_xml_ctx_t *xml_ctx, fds_iemgr_mapping *mapping);
251251
* Read the mappings file, process it and store it to the iemgr
252252
*/
253253
int
254-
fds_iemgr_mapping_read_file(fds_iemgr_t *mgr, const char *path)
254+
fds_iemgr_mapping_read_file(fds_iemgr_t *mgr, const char *file_path)
255255
{
256256
// Open file
257-
auto file = unique_file(fopen(path, "r"), &::fclose);
257+
auto file = unique_file(fopen(file_path, "r"), &::fclose);
258258
if (file == nullptr) {
259-
mgr->err_msg = "Cannot open file " + std::string(path) + ": " + std::strerror(errno);
259+
mgr->err_msg = "Cannot open file " + std::string(file_path) + ": " + std::strerror(errno);
260260
return FDS_ERR_NOTFOUND;
261261
}
262262

263263
// Save modification time to the manager
264-
if (!mtime_save(mgr, path)) {
264+
if (!mtime_save(mgr, file_path)) {
265265
return FDS_ERR_DENIED;
266266
}
267267

0 commit comments

Comments
 (0)