Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lfs.h
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2020-11-28 20:15:23 +0300
committerChristopher Haster <chaster@utexas.edu>2020-12-04 08:46:59 +0300
commit00a9ba7826318408d280aafe5dc527a43b2c965d (patch)
tree77b0a24a7dadd72edcc4828409fb21a13325bb8e /lfs.h
parentfc6988c7c3c796ffcb7973e5022321f87ede44fc (diff)
Tweaked thread-safe implementation
- Stayed on non-system include for lfs_util.h for now - Named internal functions "lfs_functionraw" - Merged lfs_fs_traverseraw - Added LFS_LOCK/UNLOCK macros - Changed LFS_THREADSAFE from 1/0 to defined/undefined to match LFS_READONLY
Diffstat (limited to 'lfs.h')
-rw-r--r--lfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lfs.h b/lfs.h
index 4f7eea5..3fec4df 100644
--- a/lfs.h
+++ b/lfs.h
@@ -9,7 +9,7 @@
#include <stdint.h>
#include <stdbool.h>
-#include <lfs_util.h>
+#include "lfs_util.h"
#ifdef __cplusplus
extern "C"
@@ -174,7 +174,7 @@ struct lfs_config {
// are propogated to the user.
int (*sync)(const struct lfs_config *c);
-#if LFS_THREADSAFE
+#ifdef LFS_THREADSAFE
// Lock the underlying block device. Negative error codes
// are propogated to the user.
int (*lock)(const struct lfs_config *c);