diff --git a/include/sqsh.h b/include/sqsh.h index 530144b8e..7db4100c6 100644 --- a/include/sqsh.h +++ b/include/sqsh.h @@ -38,7 +38,7 @@ #include "sqsh_error.h" #include "sqsh_file.h" #include "sqsh_mapper.h" +#include "sqsh_posix.h" #include "sqsh_table.h" #include "sqsh_tree.h" #include "sqsh_xattr.h" -#include "sqsh_posix.h" diff --git a/include/sqsh_easy.h b/include/sqsh_easy.h index 11e69068f..3f70e172d 100644 --- a/include/sqsh_easy.h +++ b/include/sqsh_easy.h @@ -60,7 +60,8 @@ struct SqshFile; * * @return true if the file exists, false otherwise. */ -bool sqsh_easy_file_exists(struct SqshArchive *archive, const char *path, int *err); +bool +sqsh_easy_file_exists(struct SqshArchive *archive, const char *path, int *err); /** * @brief retrieves the content of a file. @@ -74,7 +75,8 @@ bool sqsh_easy_file_exists(struct SqshArchive *archive, const char *path, int *e * * @return The content of the file on success, NULL on error. */ -uint8_t *sqsh_easy_file_content(struct SqshArchive *archive, const char *path, int *err); +uint8_t * +sqsh_easy_file_content(struct SqshArchive *archive, const char *path, int *err); /** * @brief retrieves the size of a file. @@ -85,7 +87,8 @@ uint8_t *sqsh_easy_file_content(struct SqshArchive *archive, const char *path, i * * @return The size of the file on success, 0 on error. */ -size_t sqsh_easy_file_size(struct SqshArchive *archive, const char *path, int *err); +size_t +sqsh_easy_file_size(struct SqshArchive *archive, const char *path, int *err); /** * @brief retrieves unix permissions of a file. @@ -96,7 +99,8 @@ size_t sqsh_easy_file_size(struct SqshArchive *archive, const char *path, int *e * * @return The unix permissions of the file on success, 0 on error. */ -mode_t sqsh_easy_file_permission(struct SqshArchive *archive, const char *path, int *err); +mode_t sqsh_easy_file_permission( + struct SqshArchive *archive, const char *path, int *err); /** * @brief retrieves the modification time of a file. @@ -107,7 +111,8 @@ mode_t sqsh_easy_file_permission(struct SqshArchive *archive, const char *path, * * @return The modification time of the file on success, 0 on error. */ -time_t sqsh_easy_file_mtime(struct SqshArchive *archive, const char *path, int *err); +time_t +sqsh_easy_file_mtime(struct SqshArchive *archive, const char *path, int *err); /*************************************** * chrome/directory.c diff --git a/include/sqsh_file_private.h b/include/sqsh_file_private.h index f963f910b..c02fee359 100644 --- a/include/sqsh_file_private.h +++ b/include/sqsh_file_private.h @@ -81,7 +81,7 @@ SQSH_NO_EXPORT int sqsh__fragment_view_init( /** * @internal - * @memberof SqshFragmentView + * @memberof SqshFragmentView * @brief Retrieves the fragment data. * * @param[in] view The fragment view to retrieve the data from. @@ -93,7 +93,7 @@ sqsh__fragment_view_data(const struct SqshFragmentView *view); /** * @internal - * @memberof SqshFragmentView + * @memberof SqshFragmentView * @brief Retrieves the fragment size. * * @param[in] view The fragment view to retrieve the size from. diff --git a/lib/utils/posix.c b/lib/utils/posix.c index e9017dbef..9b156c7c7 100644 --- a/lib/utils/posix.c +++ b/lib/utils/posix.c @@ -37,8 +37,8 @@ #include "../../include/sqsh_posix.h" #include -#include #include +#include int sqsh_file_to_stream(const struct SqshFile *file, FILE *stream) { @@ -64,4 +64,3 @@ sqsh_file_to_stream(const struct SqshFile *file, FILE *stream) { sqsh__file_iterator_cleanup(&iterator); return rv; } -