You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/03/06 17:55:41 UTC

[incubator-nuttx] branch pr461 updated: fs/littlefs: correct some code format in lfs.h by running checkpatch.sh

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch pr461
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/pr461 by this push:
     new e320dec  fs/littlefs: correct some code format in lfs.h by running checkpatch.sh
e320dec is described below

commit e320dec816720721084b9fdac5f360e5efa81a08
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Fri Mar 6 23:53:43 2020 +0800

    fs/littlefs: correct some code format in lfs.h by running checkpatch.sh
    
    Signed-off-by: liuhaitao <li...@xiaomi.com>
---
 fs/littlefs/lfs.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/fs/littlefs/lfs.h b/fs/littlefs/lfs.h
index ef039dd..a597593 100644
--- a/fs/littlefs/lfs.h
+++ b/fs/littlefs/lfs.h
@@ -283,10 +283,9 @@ struct lfs_info_s
 
   /* Name of the file stored as a null-terminated string */
 
-  char name[LFS_NAME_MAX+1];
+  char name[LFS_NAME_MAX + 1];
 };
 
-
 /* littlefs data structures */
 
 typedef struct lfs_entry_s
@@ -308,7 +307,7 @@ typedef struct lfs_entry_s
       } file;
       lfs_block_t dir[2];
     } u;
- } d;
+  } d;
 } lfs_entry_t;
 
 typedef struct lfs_cache_s
@@ -554,7 +553,8 @@ lfs_soff_t lfs_file_seek(FAR lfs_t *lfs, FAR lfs_file_t *file,
  * Returns a negative error code on failure.
  */
 
-int lfs_file_truncate(FAR FAR lfs_t *lfs, FAR lfs_file_t *file, lfs_off_t size);
+int lfs_file_truncate(FAR lfs_t *lfs, FAR lfs_file_t *file,
+                      lfs_off_t size);
 
 /* Return the position of the file
  *
@@ -629,7 +629,7 @@ int lfs_dir_seek(FAR lfs_t *lfs, FAR lfs_dir_t *dir, lfs_off_t off);
  * The returned offset is only meant to be consumed by seek and may not make
  * sense, but does indicate the current position in the directory iteration.
  *
- * Returns the position of the directory, or a negative error code on failure.
+ * Returns the position of the directory, or a negative error code on failure
  */
 
 lfs_soff_t lfs_dir_tell(FAR lfs_t *lfs, FAR lfs_dir_t *dir);
@@ -667,7 +667,7 @@ int lfs_traverse(FAR lfs_t *lfs, CODE int (*cb)(FAR void *, lfs_block_t),
 int lfs_deorphan(FAR lfs_t *lfs);
 
 #ifdef __cplusplus
-} /* extern "C" */
+}
 #endif
 
 #endif /* __FS_LITTLEFS_LFS_H */