]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove _Atomic usage
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 2 Jun 2021 16:23:29 +0000 (21:53 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 2 Jun 2021 16:23:29 +0000 (21:53 +0530)
patches/README.md
src/nnn.c

index 44f870993446d1844df5207e1b2e81481a416dc6..316e4c80101634c48587d3cdfd71493ec15e3b00 100644 (file)
@@ -1,14 +1,15 @@
 <h1 align="center">User Patch Framework</h1>
 
-This directory contains user submitted patches that were rejected from mainline as they tend to be more subjective in nature. The patches will be adapted on each release when necessary (v4.1 onwards). Each patch can be applied through its respective make variable during compilation. In case inter-patch merge conflicts occur, a compatability patch is provided and will automatically be applied.
+This directory contains sizable user submitted patches that were rejected from mainline as they tend to be more subjective in nature.
+
+The patches will be adapted on each release when necessary (v4.1 onwards). Each patch can be applied through its respective make variable during compilation. In case inter-patch merge conflicts occur, a compatability patch is provided and will automatically be applied.
 
 ## List of patches
-| Patch (a-z) | Description | Make variable |
-| --- | --- | --- |
-| gitstatus | Add git status column to the detail view. Requires [libgit2](https://github.com/libgit2/libgit2). | O_GISTATUS |
-| namefirst | Print filenames first in the detail view. Print user/group columns when a directory contains different users/groups. | O_NAMEFIRST |
+| Patch (a-z) | Description | Make var |
+| --- | --- | --- | --- |
+| gitstatus | Add git status column to the detail view. Requires [libgit2](https://github.com/libgit2/libgit2). | `O_GISTATUS` |
+| namefirst | Print filenames first in the detail view. Print user/group columns when a directory contains different users/groups. | `O_NAMEFIRST` |
 
-To apply the patches, use the corresponding make variables, e.g.:
+To apply a patch, use the corresponding make variable, e.g.:
 
     make O_NAMEFIRST=1
-
index d83d7f6b331cc44fd454f562d858d674b3dd1609..ebd2985a8c35ec0a256d203eccc0dd84a850169f 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -452,7 +452,7 @@ static pthread_mutex_t running_mutex = PTHREAD_MUTEX_INITIALIZER;
 static pthread_mutex_t hardlink_mutex = PTHREAD_MUTEX_INITIALIZER;
 static ulong_t *core_files;
 static blkcnt_t *core_blocks;
-static _Atomic volatile ulong_t num_files;
+static ulong_t num_files;
 
 typedef struct {
        char path[PATH_MAX];