Skip to content

Commit

Permalink
Merge pull request #510 from olerem/clang-fixes
Browse files Browse the repository at this point in the history
isobusfs: fix clang warnings
  • Loading branch information
marckleinebudde committed Mar 22, 2024
2 parents bbd48cb + 91a9335 commit 30a46d7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions isobusfs/isobusfs_srv_fa.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ static int isobusfs_srv_fa_open_file_req(struct isobusfs_srv_priv *priv,
uint8_t error_code = 0;
uint8_t access_type;
size_t abs_path_len;
uint8_t handle = 0;
char *abs_path;
uint8_t handle;
int ret = 0;

client = isobusfs_srv_get_client_by_msg(priv, msg);
Expand Down Expand Up @@ -502,8 +502,6 @@ static int isobusfs_srv_read_directory(struct isobusfs_srv_handles *handle,
DIR *dir = handle->dir;
struct dirent *entry;
size_t pos = 0;
size_t entry_count = 0;


/*
* Position the directory stream to the previously stored offset (handle->dir_pos).
Expand Down Expand Up @@ -596,8 +594,6 @@ static int isobusfs_srv_read_directory(struct isobusfs_srv_handles *handle,
size = htole32(file_stat.st_size);
memcpy(buffer + pos, &size, sizeof(size));
pos += sizeof(size);

entry_count++;
}

*readed_size = pos;
Expand Down

0 comments on commit 30a46d7

Please sign in to comment.