diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-04-15 20:57:55 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-04-15 21:01:14 +0530 |
commit | 42e609321472f3796f010a1d32a39785c4328576 (patch) | |
tree | abc73eddc5463b4a1909189dea8763b0651fe3f4 /include/libnpass | |
parent | 689c7e2204e3e924cf24ddfb9c399215b786ec1b (diff) |
libnpass/util: refactor
https://www.kernel.org/doc/html/v4.10/process/coding-style.html
- Function return values and names
(-Exxx = failure, 0 = success) for imperative commands
(0 = failure, non-zero = success) for predicates
Diffstat (limited to 'include/libnpass')
-rw-r--r-- | include/libnpass/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libnpass/util.h b/include/libnpass/util.h index ebe97b1..c1af1a4 100644 --- a/include/libnpass/util.h +++ b/include/libnpass/util.h @@ -1,5 +1,5 @@ #include <stdlib.h> int r_mkdir(const char *path, mode_t mode); -int r_rmdir(const char *prefix_path, char *rm_path); +int r_rmdir_empty(const char *prefix_path, char *rm_path); void util_strtrim(char *s); |