Skip to content

Commit

Permalink
chores: clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottox committed Aug 17, 2023
1 parent e2a58c4 commit c9e432b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion include/sqsh.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
15 changes: 10 additions & 5 deletions include/sqsh_easy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions include/sqsh_file_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions lib/utils/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
#include "../../include/sqsh_posix.h"

#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>

int
sqsh_file_to_stream(const struct SqshFile *file, FILE *stream) {
Expand All @@ -64,4 +64,3 @@ sqsh_file_to_stream(const struct SqshFile *file, FILE *stream) {
sqsh__file_iterator_cleanup(&iterator);
return rv;
}

0 comments on commit c9e432b

Please sign in to comment.